I am using sunos. Does unix sed not have the ability to remove blank lines in the middle of a file? I tried all the sed solutions listed here.
These four looked most promising. They only deleted blank lines at the end of a file. Not in the middle of a file.
The awk solution works. Would just prefer sed since I am using sed already.
awk 'NF' file