in reply to delete blank lines in a txt file

one of the following from the command line should do the trick:
perl -i.bak -ne "print if /./" filename
or, to get rid of _all_ the newlines:
perl -i.bak -ne "chomp, print if /./" filename

"Argument is futile - you will be ignorralated!"