Skip to content

Instantly share code, notes, and snippets.

@FirePanther
Last active December 10, 2016 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FirePanther/c09aa7099771e6ae32592e87eff0377a to your computer and use it in GitHub Desktop.
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"
# 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