Hello,
I am trying to create a nawk script to do the following: print the $1, $2, $(NF-1), $NF (basically print the first two fields and then the last two fields where the number of fields for each row varies). When I try to run this I get an error ("Trying to access field -1"). Any suggestions?
Thanks,
Padre
I am trying to create a nawk script to do the following: print the $1, $2, $(NF-1), $NF (basically print the first two fields and then the last two fields where the number of fields for each row varies). When I try to run this I get an error ("Trying to access field -1"). Any suggestions?
Thanks,
Padre