Archive

Archive for the ‘sed’ Category

Deleting blank lines using sed

delete ALL blank lines from a file 
 sed '/^$/d'                           # method 1
 sed '/./!d'                           # method 2

from http://sed.sourceforge.net/sed1line.txt
Advertisements
Categories: sed