title: How to select some columns with AWK?
body: <p>I want to select some columns in a file and run some command on it.
  so my script is this</p>
  
  <pre><code>awk '{print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$19}' test.txt &gt; outpot.txt
  </code></pre>
  
  <p>but this print it to another file and I tried to do this</p>
  
  <pre><code>awk '{print $1,$2,$3,$4,$5,$6,$7,$9,$10,$11,$12,$13,$14,$15,$16}' test.txt | next commands
  </code></pre>
  
  <p>(This commands works fine! I did a mistake and I don't know how to remove this question)</p>
  
  <p>is it possible to make this command shorter like instead of writing all columns just write <code>$1-7 &amp;&amp; $9-15 &amp;&amp; $19</code> (but this is not really important I just wondered if it's possible). The main thing is to be able to choose that columns</p>