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

illoai at gmail.com illoai at gmail.com
Thu Jan 26 15:28:35 PST 2006


On 1/26/06, Matthew Seaman <m.seaman at infracaninophile.co.uk> wrote:
> Graham Bentley wrote:
> > removing all the word ~tmp files on our Samba
> > server
>
>    find /your/file-system -type f -name '*~tmp*' -print0 | xargs -0 rm -f
>
> or something like that.
>

find /your/file-system -type f -name '*~tmp*' -delete

I would think.

--
--


More information about the freebsd-questions mailing list