#!/bin/sh
echo Content-type: text/html
echo
SEARCH=`echo "$QUERY_STRING"|
sed '/search=/s/search=\([^&]*\)/\1/'|/u/faculty/dick/bin/urlunencode`
echo "
$QUERY_STRING"
echo ""
if [ x"$SEARCH" = x ]
then
echo Please supply a search string below or select
echo the complete index of the notes for CS320: "Programming Languages"
else
spoof=dick
echo "QUERY_STRING=$QUERY_STRING, SEARCH=$SEARCH"|mail -s lookup320 $spoof@csci.csusb.edu
echo "Items in CS320 dictionary containing a string matching \"$SEARCH\"
"
egrep -i -e "$SEARCH" /home/u/faculty/dick/cs320/dictionary.html
fi
echo "
"
echo "To see the complete index of the notes for CS320: Programming Languages:"
echo ""
echo "[Dictionary]"
echo ""
echo "Search for items containing a matching string. "
echo "
"
echo "
"
echo 'Send Me a Question or Comment
'
echo 'All searches are anonymous so I can not reply to them.
'
echo '"
echo "
"
echo ""