Shell Script Remove All Blank Links April 17, 2015 ~ admin Use the following ‘awk’ command to remove all blank lines from a file: awk ‘NF > 0’ filename