User Tools

Site Tools


sed:delete:delete_blank_lines

This is an old revision of the document!


SED - Delete - Delete blank lines

sed '/^$/d'

Example

Running that command again this file:

testfile
aaa
 
bbb
ccc

returns:

testfile
aaa
bbb
ccc
sed/delete/delete_blank_lines.1597576329.txt.gz · Last modified: 2020/08/16 11:12 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki