title: SED command to get nth tab separated value between lines x and y
body: <p>I have been able to extract certain lines from a large tab-separated text file and write them to another file: </p>
  
  <pre><code>sed -n 100,200p file.tsv &gt;&gt; output.txt
  </code></pre>
  
  <p>However, I am actually trying to grab the <strong>8th tab-separated value</strong> from each line and write them to a file comma separated, but I cannot find the right syntax to use for the pattern matching, despite reading dozens of online articles.</p>
  
  <p>For each time I have basically been trying to match </p>
  
  <p><code>$2</code> in <code>/([^\t]*\t){7}([0-9]*).*/</code></p>
  
  <p>with no luck.</p>
  
  <p>The lines within the text file file.tsv resemble:</p>
  
  <pre><code>01  name1   title1  summary1    desc1   image1  url1    120019  time1
  02  name2   title2  summary2    desc2   image2  url2    576689  time2
  </code></pre>
  
  <p>Please can anyone help me with this query?</p>