Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Created November 11, 2014 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshcutdevelopment/bf00b1f894c93d3248cd to your computer and use it in GitHub Desktop.
Save freshcutdevelopment/bf00b1f894c93d3248cd to your computer and use it in GitHub Desktop.
PowerShell one liner to split by line count
$i=0; Get-Content .\filePaths.txt -ReadCount 500 | %{$i++; $_ | Out-File out_$i.txt}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment