Skip to content

Instantly share code, notes, and snippets.

@eric-wood
Created June 27, 2013 15:29
Show Gist options
  • Save eric-wood/5877440 to your computer and use it in GitHub Desktop.
Save eric-wood/5877440 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/zsh
# my awesome grep alias
function ff () {
grep "$@" -s -n -I -R . --color=always --exclude=\*.{data,swp,db,log,git,noun,adj,verb} | grep -v -E 'ckeditor';
}
cd ~/community/app
for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | grep msp); do
git checkout $branch > /dev/null
echo "CHECKING $branch..."
ff "_ESCAPE"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment