title: AWK -Print the next to last field of each line of input file
body: <p>I have an input file file the content of which constantly is updated 
  with various number of fields, what I am trying to is to  print out to a new file 
  the next to last field of each line of input file:
  awk  '{print $(NF-1)}' outputfile </p>
  
  <p>error:
  and
  awk: (FILENAME=- FNR=2) fatal: attempt to access field -1</p>
  
  <p>Need help. Thanks in advance </p>