On Wed, Nov 06, 2002 at 11:24:19AM -0600, Matthew Bettinger wrote:
> I am having a bit of trouble with the find command. I am a novice in its use
> so maybe someone can help me out here.
>
> I have a list of files (hundreds) in directory . and need to search through
> and delete every file that contains the word foo.
[...]
find . -name "*foo*" -exec rm {} \;
find . -name "*foo*" -print | xargs rm
find . -name "*foo*" -delete //the fastest one
--
0A 0D 0A 2D 2D 20 0D 0A 44 6F 6D 69 6E 69 6B 20 ...-- ..Dominik
4C 75 70 69 6E 73 6B 69 20 2F 2F 20 79 68 70 78 Lupinski // yhpx
40 61 6C 70 68 61 2E 6E 65 74 2E 70 6C 0D 0A 2E @alpha.net.pl...
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message