Search only one file type

Limit a recursive search to .py files

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

tool
grep15 commands
tags
grep

More grep commands

all 15 grep commands