[Bug 269521] split(1): add '-c' to continue creating files
Date: Mon, 13 Feb 2023 01:55:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269521
Bug ID: 269521
Summary: split(1): add '-c' to continue creating files
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: jschauma@netmeister.org
Created attachment 240121
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240121&action=edit
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
--
You are receiving this mail because:
You are the assignee for the bug.