[CS-FSLUG] An easy way to remove blank lines?
Brian Derr
bderr at myrealbox.com
Tue Sep 13 19:20:24 CDT 2005
On Mon, 2005-09-12 at 07:35 -0400, Josiah Ritchie wrote:
> sed '/^\s*$/d' < index.html > index.html
In response to this and the post my Stephen the answer is '-i'.
sed -i '/^\s*$/d' index.html
I would only recommend the -i switch after you have tested the output
without it first though! Perhaps a '| more'? :-)
--
Brian
The just man walketh in his integrity: his children are blessed after
him. -- Proverbs 20:7
More information about the Christiansource
mailing list