(via sed.sourceforge.net)
Very useful sed one liners...
Sed One Liners
Submitted by wizap on Sat, 01/19/2008 - 20:11
|
User loginRecent blog posts
Who's onlineThere are currently 0 users and 1 guest online.
|
Sed one-liners explained
Hi.
I wanted to let you know that I wrote an article "Famous Sed One-Liners Explained" which explains all the sed one-liners in the file sed1line.txt which is floating around the internet.
Hope you find it useful! :)
Sincerely,
Peteris Krumins
Remove all empty lines in a text file
$ sed '/^$/d' file > file.new