title: awk last argument before NF?
body: <p>I tried to print the argument before <code>$NF</code>. However <code>$NF--</code> doesn't do the trick. What is the solution to this? Problem is, I dono how many args I get, so I always need <code>$NF</code> and the arg before.</p>
  
  <p>Kind Regards</p>
  
  <p>Juergen</p>
  
  <pre><code>host -t ptr 1.1.1.1 | awk '/pointer/ {num=split($0,a, "."); print a[num-2] "." a[num-1] ;}'
  
  foo.tld
  </code></pre>