Date: Fri, 27 Jul 2007 11:00:15 -0500 From: Martin McCormick <martin@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org Subject: Re: awk question Message-ID: <200707271600.l6RG0F4r036823@dc.cis.okstate.edu>
next in thread | raw e-mail | index | archive | help
"n j" writes: > Or awk only i.e. no sed: > > awk '!(/^$/) { print $(NF-1) }' user.csv That's right. I originally suggested the sed and then was thinking about it as I walked home yesterday and knew that awk could test for the blank line condition before committing suicide.:-) Martin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707271600.l6RG0F4r036823>