Remove empty lines from a file using sed
sed '/^$/d' file.txt
Original Article
Posted in Command Line, Linux | No Comments »