Unix find and grep

Periodically I need to find some files within a unix server that contain some random text. I also get caught out between say Redhat or Solaris or OSX.

Recently it was searching for some text within a heap of maven pom files.


find . -name pom.xml | xargs grep '1.2-SNAPSHOT'