linux sed replace space with newline remove newline code example
Example: bash replace newline with space
Just use tr command as follow:
tr '\n' ' ' < file #Replaces all newlines matches with a space ' '
Just use tr command as follow:
tr '\n' ' ' < file #Replaces all newlines matches with a space ' '