Return to Snippet

Revision: 3212
at June 19, 2007 04:33 by plexus


Initial Code
$ cat filename |sed '/^[\t ]*$/{
N
/^\n[\t ]*$/d
}'

Initial URL


Initial Description
Converts whitespace that spans multiple lines into a single newline, needs improvement

Initial Title
Sed convert multiline whitespace to single newline

Initial Tags
regexp

Initial Language
Bash