[Dovecot] 1.0.rc10 released

Peter Abrahamsen rainhead at gmail.com
Tue Oct 17 06:41:12 UTC 2006


... and and even better version is:

find /path -name 'dovecot.index.*' -print0 | xargs -0 rm

Which doesn't do stupid things when you have mailboxes with spaces in
their names.

P

On 10/16/06, Ian Mortimer <ian at physics.uq.edu.au> wrote:
> On Mon, 2006-10-16 at 15:48 +0200, Petar Bogdanovic wrote:
>
> > > find /path -name dovecot.index.\* | xargs rm
> >
> > find /path -name 'dovecot.index.*' -exec rm {} \;
>
> The version with xargs is much more efficient on a large file store.
> The second version forks a separate rm process for each file.
> xargs forks the minimum number of rm processes required by the shell.
>
>
> --
> Ian
>
>


More information about the dovecot mailing list