Removing lines with sed 19 November 2014 Removing empty lines with sed: sed '/^$/d' myFile > newFile [ Linux Bash One-Liner ]