Skip to content

Instantly share code, notes, and snippets.

@tiagobbraga
Last active May 17, 2016 12:04
Show Gist options
  • Save tiagobbraga/d916ebfb388bdc1dd2ba127068b1d3d1 to your computer and use it in GitHub Desktop.
Save tiagobbraga/d916ebfb388bdc1dd2ba127068b1d3d1 to your computer and use it in GitHub Desktop.
MARK to TODO and FIXME
#!/bin/bash
TAGS="TODO:|FIXME:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment