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 /' '{*}'
% csplit -n 1 -f "" --no-clobber --suppress-matched -sz ../mbox2 '/^From /' 
'{*}'
% ls
0 1 2 3 4 5

Kindly consider a 'no-clobber' option.

regards,

s h e h u


Reply via email to