sed:delete:delete_blank_lines
Table of Contents
SED - Delete - Delete blank lines
Same as “grep '.' ”
sed '/^$/d' # method 1 sed '/./!d' # method 2
Example
Example
cat input.txt | sed '/^$/d' > output.txt
sed/delete/delete_blank_lines.txt · Last modified: 2020/08/17 09:23 by 192.168.1.1