> >     > awk '{print $(NF-1)}' user.csv
>
> Yup, those blank lines will kill it for sure. A sed filter to
> remove blank lines ahead of the awk statement should allow it to
> work properly.

Or awk only i.e. no sed:

awk '!(/^$/) { print $(NF-1) }' user.csv

-- 
Nino
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to