SyntaxFix
Write A Post
Hire A Developer
Questions
You can do something like that using "grep", too:
egrep -v "^$" file.txt