[CS-FSLUG] An easy way to remove blank lines?

Brian Derr bderr at myrealbox.com
Fri Sep 9 20:49:24 CDT 2005


On Fri, 2005-09-09 at 13:05 -0400, Josiah Ritchie wrote:
> I'd like to know how to do this is sed. You inspired me to play with it
> for about 3 minutes. I thought "sed '/^&/d' < temp.text > new.text"
> should do it, but it didn't touch a thing. Anyone else know that one?

My brain is aching from this one.  Running `sed '/^$/d' index.html`
against a basic HTML file does NOT remove blank lines!  Every manual
I've read and every sed page on the internet says it does just that.
What gives?
-- 
Brian

The just man walketh in his integrity: his children are blessed after
him.  -- Proverbs 20:7





More information about the Christiansource mailing list