2006-06-15 08:43

by Vasil Kolev

BASTARDS!

(I’m writing this after I had to write a nasty workaround)

Google will tell you that if you want to delete the empty lines from a file with sed, it’s done with s/^$//d . Yes, but really no, if you’re using GNU sed which comes with Debian stable, in which this option (/d) is missing – not implemented, and not even mentioned in the man page, so this is not really doable. And I want to have one single sed script which does something and if there’s error to be able to see it right away, not to have to do magic through 5 files, etc…

Interesting that in *BSD there’s no such problem, and with sed 4.0.9 in other distributions. BASTARDS.

Leave a Reply