Skip to content

Instantly share code, notes, and snippets.

@potch
Created February 16, 2011 22:04
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 potch/830349 to your computer and use it in GitHub Desktop.
Save potch/830349 to your computer and use it in GitHub Desktop.
TODO helper for team projects. no warranties.
#!/bin/sh
if [[ $1 ]]; then
ack "TODO\s?\($1\)"
else
ack --noheading "TODO\s?\(([^\)]+)\)" --output='$1' -h | sort -f | uniq -ic | sort -r
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment