Skip to content

Instantly share code, notes, and snippets.

@phnahes
Last active March 11, 2020 16:51
Show Gist options
  • Save phnahes/a4f486c4a5144346eb03dc071dc97912 to your computer and use it in GitHub Desktop.
Save phnahes/a4f486c4a5144346eb03dc071dc97912 to your computer and use it in GitHub Desktop.
[SED] remove new line using sed and bash
cat file.txt | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment