HomeFreeBSD

split(1): add '-c' to continue creating files

Description

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

Details

Provenance
jschauma_netmeister.orgAuthored on May 30 2023, 1:13 PM
christosCommitted on May 30 2023, 1:13 PM
Parents
rGc4f7198f47c1: split(1): auto-extend suffix length if required
Branches
Unknown
Tags
Unknown