rg 'pattern' --type py

Category: Productivity & Search

rg 'pattern' --type py

Search only Python files with ripgrep

Searches only Python (.py) files, ignoring all other file types.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.