See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269521
diff to split.c, split.1
Currently, split(1) will clobber any existing output files:
$ split file; ls
xaa xab xac xad
$ split second-file; ls
xaa xab xac xad xae xaf
with files 'xaa' - 'xad' now having been overwritten.
I often would like for it to pick up where it left off and continue creating files in the sequence. Right now, there is no good way for me to yield the desired output of "xaa xab xac xad xae xaf xag xah xai xaj".
The attached diff adds a flag "-c" (mnemonic "create, don't overwrite" or "continue where you left off"):
$ split file; ls
xaa xab xac xad
$ split -c second-file; ls
xaa xab xac xad xae xaf xag xah xai xaj