Search code fast

Find where something is used, ignoring virtualenvs and builds.

bash beginner #grep#search#git
bash-grep-code.sh
grep -rn --include='*.py' "def create_app" .
grep -rn --exclude-dir={.git,.venv,node_modules,dist} "TODO" .
git grep -n "url_for('main.blog')"        # only tracked files, very fast