#! /bin/sh
#
# findfile
#
# Version: 1995/05/15.
#
# Usage: findfile pattern
#
# Display on standard out a list of all file names matching 'pattern',
# which may need to be enclosed in quotes to deal with wildcard characters,
#
if [ "$#" = "0" ]; then
   echo "Usage: findfile pattern"
   exit 1
fi
#
findfilelist=/usr/local/lib/findfile.list
if [ ! -r $findfilelist ]; then
   echo "Unable to read file $findfilelist."
   exit 1
fi
#
for pattern
do
   egrep -e "$pattern" $findfilelist
done
