I want to use split to break a 5 GB CSV file into multiple files. I am testing if the split command works on a smaller file, so I created a CSV file named test with the following information:
Name Age Blah
bob 12 x
sam 32 x
x x x
x x x
x x x
x x x
x x x
x x x
x x x
I run:
split -l 2 test2.csv
And I would expect five or more files created named xaa, xab, etc. Instead I am seeing one file with all the rows named xaa. I also tried doing it with gsplit and I got the same result.
Any suggestions on how to debug or how to get it to work? I am assuming this is failing silently.