]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
split(1): add '-c' to continue creating files
authorJan Schaumann <jschauma@netmeister.org>
Tue, 30 May 2023 13:13:16 +0000 (16:13 +0300)
committerChristos Margiolis <christos@FreeBSD.org>
Tue, 30 May 2023 13:13:16 +0000 (16:13 +0300)
commitac17fc816e67a4e5e2e481b5001577a8d589f8b6
tree0b3bcefe9e523e705523bc26b623bc30e6f368a4
parentc4f7198f47c15eece849d06e8fdd1fb46ed43bba
split(1): add '-c' to continue creating files

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

This patch 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

Reviewed by: christos
Approved by: kevans
Different Revision: https://reviews.freebsd.org/D38553
usr.bin/split/split.1
usr.bin/split/split.c