Home How can I replace a newline (\n) using sed?
Reply: 0

How can I replace a newline (\n) using sed?

user213
1#
user213 Published in June 20, 2018, 10:56 pm

How can I replace a newline (\n) using the sed command?

I unsuccessfully tried:

sed 's#\n# #g' file
sed 's#^$# #g' file

How do I fix it?

Sed
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.480637 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO