FILE:
FILE
hello world foo bar
How can I remove all the empty new lines in this FILE?
Output of command:
grep . FILE
(And if you really want to do it in sed, then: sed -e /^$/d FILE)
sed -e /^$/d FILE
(And if you really want to do it in awk, then: awk /./ FILE)
awk /./ FILE
1.4m articles
1.4m replys
5 comments
57.0k users