Skip to content

Simple Bash script to automatically split large .csv file into smaller parts preserving the header ( first line ).

License

Notifications You must be signed in to change notification settings

ayankcell/Large-CSV-File-Splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Large-CSV-File-Splitter

This is just simple Bash script to deal with large CSV Files. It automatically splits large .csv file into smaller parts preserving the header ( first line data ).

It uses the advantage of built in Linux CLI command "split".

By default it creates multiple files from one large .csv file with each of files containing maximum of 5000 ( five thousand ) records. You could modify this value as you like.

How To Use

  • Simply download the csv-split file.
  • Make the file executable by typing chmod +x csv-split in your terminal
  • Then do the split by executing it ./csv-split large_file.csv
  • Done!

Disclaimer

This script was created initially to help my personal need in processing big .csv file. I don't guarantee it fits your need.

About

Simple Bash script to automatically split large .csv file into smaller parts preserving the header ( first line ).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages