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