Skip to content

Instantly share code, notes, and snippets.

@MParvin
Created December 28, 2020 00:00
Show Gist options
  • Save MParvin/e15c0413f7d150515463f0b64999e5d5 to your computer and use it in GitHub Desktop.
Save MParvin/e15c0413f7d150515463f0b64999e5d5 to your computer and use it in GitHub Desktop.
Very Simple Todo finder for Python written in Bash
#!/bin/bash
# Show one line before (-B 1) and one line after (-A 1) matched
# .venv excluded
# Used -n to show line number
# -s for prevent displaying error messages
# -r for recursive, in some versions of grep -r doesn't exists
grep 'TODO' -B 1 -A 1 --color --exclude-dir=.venv -nsr ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment