Systems Administration Problem Solvers
Use the following ‘awk’ command to remove all blank lines from a file: awk ‘NF > 0’ filename