# remove blank lines # technically, remove the extra repeated consecutive newlines ( -> ) sed '/^$/d'