[PLUG] Sed problems
Eli Stair
eli.stair at gmail.com
Sun Sep 11 17:00:13 UTC 2005
That always works for me... off hand I'd guess that your file isn't in
UNIX format, though I believe /^$/ would match CRLF or NL. 'file
FILENAME' will tell you if it is in DOS format (output will be: ASCII
text, with CRLF line terminators) Try running dos2unix on your source
file if that is the case.
/eli
On 9/11/05, Brian Derr <bderr at myrealbox.com> wrote:
> Hey folks, I ran across this on another mailing list and thought I'd
> give it a try here. When trying to delete blank lines from an .html
> file the syntax would appear to be `sed '/^$/d' file.html > new.html`,
> no? Why doesn't it work? When run on a random HTML file it does not
> remove a single blank line. Any ideas how to get sed to cooperate?
> --
> Brian
>
> The just man walketh in his integrity: his children are blessed after
> him. -- Proverbs 20:7
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list