title: how to access last index of array from split function inside awk?
body: <p>How can i do this using awk?</p>
  
  <p>Example - </p>
  
  <pre><code>awk '{split($1,A,"."); print A[-1], $1, $2, $3, $4}'
  </code></pre>
  
  <p>Sample input and output.</p>
  
  <p>Input  </p>
  
  <pre><code>123 456 abc.def.ghi 789 
  321 654 qaz.wsx.edc.rfv 987
  </code></pre>
  
  <p>Output  </p>
  
  <pre><code>ghi 123 456 abc.def.ghi 789  
  rfv 321 654 qaz.wsx.edc.rfv 987
  </code></pre>