Posted By

ches on 12/12/07


Tagged

strip text awk


Versions (?)

Deleting Blank Lines Using AWK


 / 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.

  1. cat /tmp/test | awk 'NF > 0' > /tmp/test1

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: ches on December 12, 2007

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

You need to login to post a comment.