#!/bin/csh
#any questions, mail liza@cs

echo "removing old foundletter file"
/bin/rm foundletter
echo "creating new foundletter file"
touch foundletter

echo ""
echo -n "enter word or letter to search for: "
set input_line = $<

echo ""
echo "searching for $input_line"

foreach i (*[a-z]*)
echo "looking in $i"
echo "looking in $i" >> foundletter
grep $input_line $i >> foundletter
end

echo ""
echo "output of search in filename foundletter"
