awk question

Martin McCormick martin at
Fri Jul 27 16:00:16 UTC 2007

"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


More information about the freebsd-questions mailing list