title: PowerShell: How to remove columns from delimited text input?
body: <p>I have a text file with 5 columns of text delimited by whitespace. For example:</p>
  
  <pre><code>10 45 5 23 78
  89 3 56 12 56
  999 4 67 93 5
  </code></pre>
  
  <p>Using <strong>PowerShell</strong>, how do I <strong>remove</strong> the rightmost two <strong>columns</strong>? The resulting file should be:</p>
  
  <pre><code>10 45 5
  89 3 56
  999 4 67
  </code></pre>
  
  <p>I can extract the individual items using the <code>-split</code> operator. But, the items appear on different lines and I do not see how I can get them back as 3 items per line.</p>
  
  <p>And to make the question more generic (and helpful to others): How to use PowerShell to remove the data at multiple columns in the range <code>[0,n-1]</code> given an input that has lines with delimited data of <code>n</code> columns each?</p>