Michael Vigor
  • Twitter
  • Github
  • Email
  • About

Handy sed one liners

Posted on Updated May 14, 2021 May 14, 2021 TIL sed commandline

Remove line breaks:

sed ':a;N;$!ba;s/\n/ /g'

Escape double quotes:

sed 's/"/\\"/g'
© 2022 Michael Vigor
  • About
  • Twitter