Created
December 28, 2020 00:00
-
-
Save MParvin/e15c0413f7d150515463f0b64999e5d5 to your computer and use it in GitHub Desktop.
Very Simple Todo finder for Python written in Bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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