title: How can I grep nth column of tab delimited file in Groovy?
body: <p>My source file is tab delimited and I need to grep the 4th column of values. How can I do this in Groovy? Here's my code which doesn't work. Is it even close?</p>
  
  <pre><code> def tab_file = new File('source_file.tab')
   tab_file.eachline { line -&gt; println line.grep('\t\t\t\t'} 
  </code></pre>