ASTsearch is an intelligent search tool for Python code. To get it: pip install astsearch To use it: # astsearch pattern [path] astsearch "?/?" # Division operations in all files in the current directory For more details, see the documentation.