tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: split(1): add '-c' to continue creating files
On Sun, Feb 12, 2023 at 04:05:20PM -0500, Jan Schaumann wrote:
> 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
I think this is a dangerous and non-obvious user interface, especially
when we hit collisions later or data changes and we are re-doing the split.
How about instead adding an option that sets the first name explicitly
and keeps the "abort on failure" behaviour?
Besides, isn't your intended behaviour easily done with:
$ cat file second-file | split
?
Martin
Home |
Main Index |
Thread Index |
Old Index