
When you work with large CSV files it is sometimes useful to have a quick way to split the csv file into smaller pieces so that another application / process / people can work on these smaller files in parallel. Here is a nifty bash script to split a csv file into multiple pieces and retain the same header in all pieces.