title: select -first 1 on a large file
body: <p>I am trying to run the following command on a very large text file. However, it's very slow</p>
  
  <pre><code>((cat largefile.txt | select -first 1).split(",")).count()
  </code></pre>
  
  <p>Is an alternative fast way in powershell? It seems the command will scan the whole file no matter what. </p>