-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

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.

Some of my failed attemps...

find . -exec grep -i "foo" -ok -delete {} \;

find . -exec grep -l 'foo' -ok -delete {}\;

find . -exec grep "foo" {}\; | xargs rm


Thanks for any help.

Matt 


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9yVBIXG7+MmNwciURAr1VAKCJWZF87EfqAk8hLdnj/prlZwpVDwCbBrAt
Lq+3Zv2Ocd4EmxAXfdhp1OY=
=HNAV
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to