Elegant delete of word ~tmp files in all sub / dirs

Olivier Nicole on at cs.ait.ac.th
Sun Jan 29 21:57:20 PST 2006


Hi Mathieu,

> useless to do -r while you search only files (-type f)

> the delete function of find seems more apropriate to me

But the -exec mode is more general (understand you put whatever
command you want there) and beside, the first question was refeering
to a syntax using {}.

But I guess that Graham has already deleted all his directories anyway :)

Olivier


More information about the freebsd-questions mailing list