Same as “grep '.' ”
sed '/^$/d' # method 1 sed '/./!d' # method 2
Running that command again this file:
aaa bbb ccc
returns:
cat input.txt | sed '/^$/d' > output.txt