經安全檢測,此網站為安全網站,請放心前往原始網址!

unix - sed: How can I replace a newline (\n)? - Stack Overflow

I unsuccesfully tried: sed 's#\n# #g' file sed 's#^$# #g' file. How to fix it? ... Or use this solution with sed: sed ':a;N;$!ba;s/\n/ /g'. This will read the whole file in a loop, ...

stackoverflow.com

網址安全性掃描由 google 提供