/ Published in: Bash
Converts whitespace that spans multiple lines into a single newline, needs improvement
Expand |
Embed | Plain Text
$ cat filename |sed '/^[\t ]*$/{ N /^\n[\t ]*$/d }'
You need to login to post a comment.
plexus on 06/19/07
Shell multiline whitespace regexp sed newline patternspace
Converts whitespace that spans multiple lines into a single newline, needs improvement
$ cat filename |sed '/^[\t ]*$/{ N /^\n[\t ]*$/d }'
You need to login to post a comment.