rosti,
Assuming the blank lines are completely empty, this should work
[tt] grep -v "^$" < original.txt > noblanks.txt[/tt]
grep -v displays all strings that do not match the search string. ^ and $ match the beginning and end of a line respectively, hence ^$ matches an empty line.
Annihilannic.