Find a specific pattern in a bunsh of files

Example to find the pattern pattern in all files with Rmd extension, in all the folders currently (.) accessible:

#!/usr/bin/bash

find . -name "*Rmd" -type f -exec grep -E 'pattern' {} +



Related (find) topics: