Shell entfernen Sie aufeinanderfolgende Neue Linie
# remove blank lines
# technically, remove the extra repeated consecutive newlines (\n\n -> \n)
sed '/^$/d'
Rich Raccoon
# remove blank lines
# technically, remove the extra repeated consecutive newlines (\n\n -> \n)
sed '/^$/d'