#!/bin/sh
#
# $FML: .grep,v 1.3 2001/04/15 03:14:39 fukachan Exp $
#

tmp=/tmp/buffer$$
trap "rm -f $tmp" 0 1 3 15

cd ../.. || exit 1

find fml cpan -type f -print | egrep '\.pm$|/etc/' > $tmp
find fml/libexec -type f -print | grep -v CVS >> $tmp
find regress -type f -print | grep -v CVS >> $tmp

for key in $*
do
   egrep $key `cat $tmp`
done

exit 0
