Skip to content

Instantly share code, notes, and snippets.

@s0kil
Created March 4, 2022 12:11
Show Gist options
  • Save s0kil/98e7487557537581b485b1d64ae13950 to your computer and use it in GitHub Desktop.
Save s0kil/98e7487557537581b485b1d64ae13950 to your computer and use it in GitHub Desktop.
Linux split csv file into multiple and keep header
cat Large-File.csv | parallel --header : --pipe -N2000 'cat >file_{#}.csv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment