Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Dec 3, 2002
Messages
3
Location
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.
 
I use this command on AIX but I am not sure if it works on SOLARIS.

find . | xargs grep STRING

Regards
Jono
 
Thanx jonoheap. Worked a treat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top