On Mon, 31 Jan 2000, Gaurav wrote:

> Hi All,
>         I work on Solaris and if I do
> grep -ins 'pattern' `find . *`
> Then it fails if there is a large directory and subdirectories inside
> the current directory...and my grep is not having -r option...which is a
> quality of linux grep that it can recursively search directories(Wow!).
>
        Really? Which distribution of Linux are you using? I use Debian,
and its grep doesnt have any recursive option.
 
> My question is that is there any way out....(script or command) using
> which I can grep under subdirectories
> without facing this problem again
>      

        find . -type f -exec grep <pattern> {} \;

        ...where <pattern> is the basic regular expression that you
specify for matching.

Regards,
Kenneth



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to