This might help. *find <path> -name <filenamepattern> | xargs grep <searchstring>*
Courtesy : http://www.tech-recipes.com/unix_tips732.html On Feb 1, 2008 12:23 AM, John Jimmy Dondapati <[EMAIL PROTECTED]> wrote: > Yes, grep -r does not work on Solaris too... > > Although this isnt any solution to your problem but if you are on Solaris > 5.10, you might wanna use /usr/xpg4/bin/grep instead. > > There are two greps /usr/bin/grep ( limited regexp support) and another > /usr/xpg4/bin/grep . > > > On Jan 31, 2008 8:40 PM, harinath adapa <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I'm trying to run "grep -r ..." after log-in into my UNIX Box with my > > user > > credentials where i'm just a user to the box. I seen this command worked > > on > > my LINUX m/c. > > > > Is it so this command will work only on LINUX or I need the privileges > > to > > run the command? I didn't saw "-r" option in my UNIX Box (man grep). > > I would be thankful to you if anybody can suggest me on this. I became > > friendly and flexible to UNIX. Enjoying working with UNIX commands :)- > > > > Thanks, > > Harinath A > > > > > > > > -- > Cheers, > John > ----------------------------------------- > A fine is a tax for doing wrong. A tax is a fine for doing well! -- Cheers, John ----------------------------------------- A fine is a tax for doing wrong. A tax is a fine for doing well! [Non-text portions of this message have been removed]

