Deleting Blank Lines Using AWK


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. cat /tmp/test | awk 'NF > 0' > /tmp/test1

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.