Tips and Tricks
Keep all tips and tricks learned in one place.
Saturday, December 10, 2011
Remove blank lines using grep/sed
$ grep -v '^$' input.txt > output.txt
$ sed '/^$/d' input.txt > output.txt
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment