17 Oct
2006
17 Oct
'06
5:27 a.m.
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