Date: Sun, 21 Dec 1997 23:07:51 -0600 (CST) From: Joel Ray Holveck <joelh@gnu.org> To: freebsd-questions@freebsd.org Subject: Re: using the find command Message-ID: <199712220507.XAA05231@detlev.UUCP>
next in thread | raw e-mail | index | archive | help
(Apologies to threaders) >> Can somebody give me the syntax for using the find command to search >> all the files in a tree for a specific string? > find . -name "*" -exec grep -l string {} \; This is less efficient than grep string `find . -print` Also note that '-name *' is redundant in find. Cheers, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712220507.XAA05231>