Date: Sat, 18 Mar 2000 23:35:13 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Kent Stewart <kstewart@3-cities.com> Cc: Jerry Preeper <preeper@cts.com>, freebsd-questions@FreeBSD.ORG Subject: Re: help with find command Message-ID: <20000318233513.C20206@hades.hell.gr> In-Reply-To: <38D27307.880CB12C@3-cities.com>; from kstewart@3-cities.com on Fri, Mar 17, 2000 at 10:01:43AM -0800 References: <3.0.5.32.20000317034932.0087b9c0@cts.com> <38D27307.880CB12C@3-cities.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 17, 2000 at 10:01:43AM -0800, Kent Stewart wrote: > > > Jerry Preeper wrote: > > > > I have been using the find command to search for files periodically that > > contain certain phrases throughout the web directory like this > > find . -exec grep -l "getimage.cgi" {} \; 2> /www/jerry/wrong-banners.txt > > For starters I would add -name "*.htm*" after the dot(.) and then > change the -l to -L. Add what ever string you are looking for after > the "-L". From man grep, the -L identifes files that do not contain > the string. At times, find option `-type f' might also prove handy. I've seen a directory entry being written on my terminal, because it was lucky (or unlucky) enough to contain the pattern I looked for ;) - Giorgos Keramidas 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?20000318233513.C20206>