Skip to content

Instantly share code, notes, and snippets.

@dwallraff
Created September 21, 2016 16:32
Show Gist options
  • Select an option

  • Save dwallraff/647c8dc636b8ee2840d20264a8489545 to your computer and use it in GitHub Desktop.

Select an option

Save dwallraff/647c8dc636b8ee2840d20264a8489545 to your computer and use it in GitHub Desktop.
Joins multiple lines and separates them with the string "<br />"
sed ':a;N;$!ba;s/\n/<br \/>/g' # Joins multiple lines and separates them with the string "<br />".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment