Return to Snippet

Revision: 4443
at February 15, 2008 14:07 by ches


Updated Code
cat /tmp/test | awk 'NF > 0' > /tmp/test1

Revision: 4442
at December 12, 2007 12:38 by ches


Initial Code
cat /tmp/test | awk '$0!~/^$/ {print $0}' > /tmp/test1

Initial URL
http://www.sap-basis-abap.com/unix/deleting-blank-lines-using-awk.htm

Initial Description
Create a copy of a text file with blank lines removed.

Initial Title
Deleting Blank Lines Using AWK

Initial Tags
text

Initial Language
Bash