File:  [mozdev] / chameleon / scripts / g
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Oct 3 19:32:29 2000 UTC (17 years ago) by petejc
Branches: MAIN
CVS tags: PR3, M18, HEAD, CHAMELEON_0_02_BRANCH_OS, CHAMELEON_0_02_BRANCH, CHAMELEON_0_02B_BRANCH
this is a handy script i use to grep around for certian files

--pete

#!/bin/sh

DIR=`pwd`;

if test $2
then

printf "\nLooking for \"$1\" . . .\n\n";

grep -lra $1 $(find $DIR -name *$2 -print); 


printf "\n\nfinished! . . .\n\n";

else
printf "\n\nusage: g <string> <.extension>\n\n";
exit

fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>