Bash - find file with specific content (find)

15 Oct 2017

find . -type f -name '*.R' -exec grep -l "pattern"  {} \;

similar to:

find folder -type f -name '*.R' | xargs  grep "pattern"
[ bash  ]