I want to split a long text.csv
text file of say 2 x 400,000 size into 80 smaller files (2 x 6000). Ideally, I want to write each smaller file on to my disk as text1.csv, text2.csv etc. What is the most efficient way to do this?
col 1 col2
0 text text
1 text text
2 text text
...
399999 text text
400000 text text
The smaller files would look like this:
col 1 col2
0 text text
1 text text
2 text text
...
4999 text text
5000 text text
col 1 col2
5001 text text
5002 text text
5003 text text
...
9999 text text
10000 text text
etc.