title: How to print selected columns separated by tabs?
body: <p>I have a txt file with columns separated by tabs and based on that file, I want to create a new file that only contains information from some of the columns.  </p>
  
  <p>This is what I have now:</p>
  
  <pre><code>awk '{ print $1, $5 }' filename &gt; newfilename  
  </code></pre>
  
  <p>That works except that when column 5 contains spaces e.g <code>123 Street</code>, only <code>123</code> shows up and the street is considered as another column.  </p>
  
  <p>How can I achieve what I'm trying to do?  </p>