Last active
December 10, 2016 02:58
-
-
Save FirePanther/c09aa7099771e6ae32592e87eff0377a to your computer and use it in GitHub Desktop.
This cron shell script automatically adds a ToDo Finder Tag to all files, which contains a comment like "// todo: replace"
This file contains 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
# you will need https://github.com/jdberry/tag for finder tags (and correct the path) | |
{ | |
grep -rlIi --null -E -e "(\#|//|/\*\*?)\s*todo\b" --exclude-dir="Library" --exclude-dir="node_modules" --include=\*.{php,js,css,htm,html} "$HOME" | xargs -0 .../execs/tag -a "ToDo" | |
} &> /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment