On Thu, 26 Jul 2007, Peter Boosten wrote:
P.U.Kruppa wrote:
Hi (and sorry for this slightly OT question),
I would like to extract the second last field of each line of a file
called user.csv .
So I try
> awk '{print $(NF-1)}' user.csv
awk: trying to access out of range field -1
input record number 1, file user.csv
source line number 1
Obviously $(NF-1) doesn't do the trick. Any better idea?
Hmmm, works for me it does...
Sorry: Actually the first line of my user.csv was empty.
Thanks though,
Uli.
Peter
--
http://www.boosten.org
Peter Ulrich Kruppa
Wuppertal
Germany
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"