/ Published in: Bash
URL: http://www.sap-basis-abap.com/unix/deleting-blank-lines-using-awk.htm
Create a copy of a text file with blank lines removed.
Expand |
Embed | Plain Text
cat /tmp/test | awk 'NF > 0' > /tmp/test1
Comments
Subscribe to comments
You need to login to post a comment.

Actually, maybe
awk 'NF > 0'works and is simpler.