How can I replace a newline (“\n
“) with a space (““) using the
sed
command?
I unsuccessfully tried:
sed 's#\n# #g' file
sed 's#^$# #g' file
How do I fix it?
How can I replace a newline (“\n
“) with a space (““) using the
sed
command?
I unsuccessfully tried:
sed 's#\n# #g' file
sed 's#^$# #g' file
How do I fix it?