Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2023 01:55:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 269521] split(1): add '-c' to continue creating files
Message-ID:  <bug-269521-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269521

            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=3D240121&action=
=3Dedit
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269521-227>