title: Extracting columns from text file using Perl one-liner: similar to Unix cut
body: <p>I'm using Windows, and I would like to extract certain columns from a text file using a Perl, Python, batch etc. one-liner.</p>
  
  <p>On Unix I could do this:</p>
  
  <pre><code>cut -d " " -f 1-3 &lt;my file&gt;
  </code></pre>
  
  <p>How can I do this on Windows?</p>