find . -type f -name '*.R' -exec grep -l "pattern" {} \;
similar to:
find folder -type f -name '*.R' | xargs grep "pattern"
find . -type f -name '*.R' -exec grep -l "pattern" {} \;
similar to:
find folder -type f -name '*.R' | xargs grep "pattern"
bash
]