That's it! :-) Thank you Theo. I knew it had to be simple - and it was. I was probably thinking too much trying to build out the conditional check. My bad. -- Gary On 06/01/2010 05:48 PM, Theo Van Dinter wrote:
Unless I'm missing something, you should just be able to do ... awk -F\| '$8 {print}'
On Tue, Jun 1, 2010 at 4:00 PM, Gary Hanley<gary@hanley.net> wrote:
Wow, what's wrong with me? I'm trying to parse a file to eliminate any line from the file to the output where a particular field is is null. The 8th field in this case.
I can't get it right! I haven't done an awk script in a long time but this should be simple stuff.
Basically I'm trying to do:
cat file | awk -F\| '$8 !~<NULL expression> {print}'
Any help would be appreciated.
Thanks.
-- Gary _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug