[Dovecot] 1.0.rc10 released
Geert Hendrickx
ghen at telenet.be
Tue Oct 17 09:44:07 UTC 2006
On Tue, Oct 17, 2006 at 12:27:39PM +1000, Ian Mortimer 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.
No, it fires an rm process for each 5000 files (by default, change with
find -n). I don't know which is more efficient though. Anyway, thinking
about it will take more time than running either command. :-)
Geert
More information about the dovecot
mailing list