Command-line Knowledge Base

tr

Delete multiple blank lines by squeezing a series of identical characters to a single character
tr -s '\n' < file.txt
NULL
NULL