title: print selected element of an array using awk one line
body: <p>Say I have a file content as given below</p>
  
  <p>cat file1</p>
  
  <pre><code>A1 A2 A3 A4 A5 A6 A7
  B1 B2 B3 B4 B5
  X1
  Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9
  Z1 Z2 Z3
  </code></pre>
  
  <p>How do I can selectively print selected elements of this array with some kind of field separator using AWK one line solution if possible.<br> 
  I want to select and print 3rd field of first line,2nd field of 2n line,1st field of 3rd line,9th field of 4th line and 2nd field of 5th line.</p>
  
  <pre><code>A3:B2:X1:Y9:Z2 
  </code></pre>
  
  <p>where the field separator is ":"</p>