Posted By

ches on 12/12/07


strip text awk

Versions (?)

Deleting Blank Lines Using AWK

 / Published in: Bash


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

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

Report this snippet  


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.