Re: Newbie: Site search, more than one directory
| From: | Richard Lynch | Date: | Tue, 31 Jul 2001 05:12:01 +0000 |
| Subject: | Re: Newbie: Site search, more than one directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60330@lists.php.net to get a copy of this message | ||
> $cmdstr = "grep -i $searchstr *";
Add a "-r" in there before or after the -i part.
"-r" will have grep search recursively.
Read "man grep" for details.
Warning: This will impact the performance of grep considerably if your site
is deep/broad...