Nix: Combine multiple consecutive blank lines into one
cat --squeeze-blank
(or cat -s
for short) will suppress repeated empty
output lines.
$ echo -e "abc
def" | cat
abc
def
$ echo -e "abc
def" | cat -s
abc
def
Via UnixToolTip.
cat --squeeze-blank
(or cat -s
for short) will suppress repeated empty
output lines.
$ echo -e "abc
def" | cat
abc
def
$ echo -e "abc
def" | cat -s
abc
def
Via UnixToolTip.
Leave a comment