Replace newline with a space in a file

Replaces all newlines with a space, by using the `tr` command.

Authored by: dmckee --- ex-moderator kitten
Brought to you by Warp, a free terminal reimagined to work like a modern app.
file_name

Command
Copy
tr '\n' ' ' < file_name
Tags