. Find text only in specific file types/extensions – Returns all the search results
grep -ir --include=\*.py text_to_search- If you want to only see the file names, then add the -l filter
grep -ilr --include=\*.py text_to_search- Based on the results, if you notice that there are certain files/folders that you’d like to ignore, you can add a -v option to exclude certain texts on the piped results, and you can add multiple of those at the same time
grep -ilr --include=\*.py text_to_search | grep -v "text_to_ignore1" | grep -v "text_to_ignore2" | more