Is there a "split" equivalent in Powershell?
<p>I am looking for a PowerShell equivalent to "split" *NIX command, such as seen here : <a href="http://www.computerhope.com/unix/usplit.htm" rel="nofollow">http://www.computerhope.com/unix/usplit.htm</a></p>

<blockquote>
  <p>split outputs fixed-size pieces of input INPUT to files named
  PREFIXaa, PREFIXab, ...</p>
</blockquote>

<p>This is NOT referring to .split() like for strings. This is to take a LARGE array from pipe and then be stored into X number of files of each with the same number of lines. </p>

<p>In my use case, the content getting piped is list of over 1Million files...</p>

<pre><code>Get-ChildItem $rootPath -Recurse | select -ExpandProperty FullName | foreach{ $_.Trim()} | {...means of splitting file here...}
</code></pre>