Saturday, September 27, 2008

How to search for a string recursively in UNIX/Solaris?

Go to the Parent folder from where the text has to be searched. Then, use the following
UNIX command,
$ find * -type fl -print | xargs grep "<text_to_search>" | more

No comments:

Post a Comment