Irritatingly, Solaris is supposed to be more advance but this same function in Solaris will have to be replicated using the piped command as follows:
/usr/bin/find . | /usr/bin/xargs /usr/bin/grep ‘Your Grep Value’
Or if your shell has all the right paths set, simply:
find . | xargs grep ‘Your Grep Value’
4 comments:
Thanks for your post Ive been looking for this! you save lots of my time!
Only problem I have is that on large directories, I get a lot of extraneous error messages on the directories that grep attempts to search.
/usr/bin/find .|/usr/bin/xargs /usr/bin/grep -s SearchString will suppress error messages
This will search in the result of find command which is the current directory files's Paths and not in their contents, so the correct command is :
find . -exec grep -i "SearchString" {} \;
Post a Comment