/ Published in: Bash
Converts whitespace that spans multiple lines into a single newline, needs improvement
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$ cat filename |sed '/^[\t ]*$/{ N /^\n[\t ]*$/d }'