Search only in file type

Limit recursive search to .py files only

grep -r --include='*.py' 'import os' /srv/app/

tool
grep15 commands
tags
grep

More grep commands

all 15 grep commands