Hello Olivier,

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

the delete function of find seems more apropriate to me

Mathieu CHATEAU



Friday, January 27, 2006, 3:00:50 AM, you 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

ON> Or, Graham wanted something with {}

ON> find /your/file-system -type f -name '*~tmp*' -exec /bin/rm -rf {} \;

ON> Olivier
ON> _______________________________________________
ON> freebsd-questions@freebsd.org mailing list
ON> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
ON> To unsubscribe, send any mail to
ON> "[EMAIL PROTECTED]"


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to