grepvim(){
grep -rl "$1" $2| xargs mvim -o +/"$1"
}
rakvim(){
rak -l "$1" $2| xargs mvim -o +/"$1"
}
Friday, May 22, 2009
Some useful bash functions
I use this bash functions to open vim with splits for each file in which grep or rak find the pattern I'm searching for:
Subscribe to:
Post Comments (Atom)





0 comments:
Post a Comment