$ find . | xargs grep PATTERN
In Solaris, the grep command does not have the -R (-r, –recursive) option which reads all files under each directory, recursively. The above command can be used to do the same in Solaris.
$ find . | xargs grep PATTERN
In Solaris, the grep command does not have the -R (-r, –recursive) option which reads all files under each directory, recursively. The above command can be used to do the same in Solaris.
Add your comment below, or trackback from your own site.
Be nice. Keep it clean. Stay on topic. No spam.
You can use these tags:
[...] has already mentioned it, but xargs is sometimes much more useful than what it looks like. Two examples come to [...]