>>> 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. >
Without understanding the bash, that is exactly what I had suspected. The $PATH variable and the : character is what gave it away. Thanks! -- Dotan Cohen http://bido.com http://what-is-what.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/t2r880dece01004021159gc7fb0336n16daceff61559...@mail.gmail.com