Skip to content

Instantly share code, notes, and snippets.

@jcefoli
Last active October 24, 2019 17:40
Show Gist options
  • Save jcefoli/4d30eb30f43db4ff7028ada64fa87942 to your computer and use it in GitHub Desktop.
Save jcefoli/4d30eb30f43db4ff7028ada64fa87942 to your computer and use it in GitHub Desktop.
Split File By Number of Lines PowerShell One-Liner)
$i=0; Get-Content input.txt -ReadCount 25 | %{$i++; $_ | Out-File out_$i.txt}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment