Skip to content

Instantly share code, notes, and snippets.

@RobertAudi
Created July 4, 2013 15:53
Show Gist options
  • Save RobertAudi/5928775 to your computer and use it in GitHub Desktop.
Save RobertAudi/5928775 to your computer and use it in GitHub Desktop.
KEYWORDS="FIXME:|\?\?\?:|\!\!\!:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment