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:

grepvim(){
grep -rl "$1" $2| xargs mvim -o +/"$1"
}

rakvim(){
rak -l "$1" $2| xargs mvim -o +/"$1"
}

0 comments: