Skip to content

Instantly share code, notes, and snippets.

@FirePanther
Last active December 10, 2016 02:58
Show Gist options
  • 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