Split large file, have arbitrary start index number
- by nEJC
I do a lot of file manipulation on my system and in one particular batch job I end up with around 16 Gb file. I need to prepare this data into smaller chunks for another process.
I split it into 10k lines per file and numeric index, padded to 5 digits
split -a 5 -d -l 10000 large_input_file /out_path/out.
This way I end up with files named
out.00000
out.00001
...
The problem is that this way indexing always starts with 0.
Is there a way to set it to arbitrary starting index? man reveals nothing ...