Replace newline with a space in a file
Replaces all newlines with a space, by using the `tr` command.
Authored by: dmckee --- ex-moderator kittenfile_name
Command
Copy
tr '\n' ' ' < file_name
Tags
Edit in GitHub
Copied
Replaces all newlines with a space, by using the `tr` command.
Authored by: dmckee --- ex-moderator kittentr '\n' ' ' < file_name