That Command

What was that command?

Home Archives
2021-08-06

Convert newlines to "\n"

1
awk -v ORS='\\n' '1' filename.txt
Share
Older
Use sed to remove commented and blank lines

Archives

  • August 2021
  • July 2021
  • March 2020

Recent Posts

  • Convert newlines to "\n"
  • Use sed to remove commented and blank lines
  • Check whether you can get to a port on an IP
  • Mount an ISO file
  • Serve the current directory over the Web via Python
© 2021 A Systems Administrator
Powered by Hexo
Home Archives