Date: Wed, 6 Nov 2002 20:42:57 +0100 From: Dominik Lupinski <yhpx@alpha.net.pl> To: Matthew Bettinger <mbettinger@championelevators.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: simple find command Message-ID: <20021106204257.A1916@ember.blah> In-Reply-To: <200211061124.25334.mbettinger@championelevators.com>; from mbettinger@championelevators.com on Wed, Nov 06, 2002 at 11:24:19AM -0600 References: <200211061124.25334.mbettinger@championelevators.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021106204257.A1916>