Skip to content

Instantly share code, notes, and snippets.

@benwyrosdick
Created July 14, 2009 14:44
Show Gist options
  • Save benwyrosdick/146984 to your computer and use it in GitHub Desktop.
Save benwyrosdick/146984 to your computer and use it in GitHub Desktop.
grep_edit script
#!/bin/sh
#grep_edit some_pattern [some_path]
#
#the path is optional ... for help with git grep command type:
#git help grep
git grep $1 $2 | cut -f1 -d: | uniq | xargs mvim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment