Apr 7, 2005 #1 IMAUser Technical User May 28, 2003 121 CH I m sure peopel have answered this before, but I couldnt find a answer , so How can I delete a blank line from a data file using awk Many thanks
I m sure peopel have answered this before, but I couldnt find a answer , so How can I delete a blank line from a data file using awk Many thanks
Apr 7, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR The awk way: awk 'NF' /path/to/input > output The sed way: sed '/^ *$/d' /path/to/input > output Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
The awk way: awk 'NF' /path/to/input > output The sed way: sed '/^ *$/d' /path/to/input > output Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244