title: How to extract a text from column in awk
body: <p>I have data like:</p>
  
  <pre><code>COSM3755563_(COSMIC),_COSM3755562_(COSMIC),_rs16941_(Gene_file)
  COSM148277_(COSMIC),_COSM3755561_(COSMIC),_rs16942_(Gene_file)
  rs1060915_(Gene_file;_1000Genomes)
  COSM3755560_(COSMIC),_rs1799966_(Gene_file)
  rs206075_(Gene_file;_1000Genomes)
  </code></pre>
  
  <p>And I need an output like:</p>
  
  <pre><code>rs16941
  rs16942
  rs1060915
  rs1799966
  rs206075
  </code></pre>
  
  <p>I need just extract rs_number from this column. Problem is, that rs_number is allways on different position. </p>
  
  <p>My solution was:</p>
  
  <pre><code>awk '{split ($1,arr1,"_"); print arr1[1)}' infile
  </code></pre>
  
  <p>This worked perfectly fine till changed position of my rs_number.</p>
  
  <p>Appreciate any help in awk.</p>