On 2.4.2010 1:45, Dotan Cohen wrote: >> etcgrep () { grep -ir "$1" /etc/* ; } >> sgrep () { grep -ir "$1" /usr/src/linux ; } >> xgrep () { grep -i "$1" $(echo $PATH | tr ":" " ") ; } >> > > Nice. I'm having a hard time understanding that last one, but I will > figure it out. Thanks! > >
It looks like it takes the PATH environment variable and splits it into multiple tokens (directories), and grep will search in *every* directory included in PATH. -- http://www.iki.fi/jarif/ You will have a long and boring life.
signature.asc
Description: OpenPGP digital signature