Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to perform a recursive keyword search under Solaris?

Status
Not open for further replies.

hazzahsv

Computer
Dec 3, 2002
3
AU
Hi.

I was wondering what would be the best/easiest way to recursively search for a keyword inside a file? Basically I know the contents of a file but have no idea where the file is.

I have explored with find, grep, cat, ls -lR etc but none of them recurse when looking for a pattern inside a file.

Thanks in advance.
 
Replies continue below

Recommended for you

I use this command on AIX but I am not sure if it works on SOLARIS.

find . | xargs grep STRING

Regards
Jono
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top