Re: csplit 'no-clobber' option

2022-01-19 Thread Shehu Dikko
* Padraig Brady [20220119 17:45:00]: > On 19/01/2022 10:36, Shehu Dikko wrote: >> [] >> % csplit -n 1 -f "" --suppress-matched -sz ../mbox1 '/^From /' '{*}' >> % csplit -n 1 -f "" --no-clobber --suppress-matched -sz ../mbox2 '

csplit 'no-clobber' option

2022-01-19 Thread Shehu Dikko
Currently: % grep -c '^From ' ../mbox* ../mbox1:3 ../mbox2:3 % csplit -n 1 -f "" --suppress-matched -sz ../mbox1 '/^From /' '{*}' % ls 0 1 2 % csplit -n 1 -f "" --suppress-matched -sz ../mbox2 '/^From /' '{*}' % ls 0 1 2 Wish: % csplit -n 1 -f "" --suppress-matched -sz ../mbox1 '/^From /' '{*}'

Re: cut -DF

2022-01-15 Thread Shehu Dikko
* Pádraig Brady [2022-01-15] [gmane.comp.gnu.coreutils.general]: > On 15/01/2022 08:44, Shehu Dikko wrote: >> [] >> $ echo one two three four five six seven eight nine | cut -DF 1,5-$ >> one five six seven eight nine >> >> Do please also add the undocumented

Re: cut -DF

2022-01-15 Thread Shehu Dikko
* Rob Landley [2022-01-05] [gmane.comp.gnu.coreutils.general]: > Around 5 years ago toybox added the -D, -F, and -O options to cut: > > -D Don't sort/collate selections or match -fF lines without delimiter > -F Select fields separated by DELIM regex > -O Output delimiter (default one