#!/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 for the site for CS202: "Comp Sci II"
else
spoof=dick
echo Query is "$QUERY_STRING"|mailx -s lookup202 $spoof@csci.csusb.edu
echo "Items in CS202 index containing a string matching \"$SEARCH\"
"
egrep -i -e "$SEARCH" /home/u/faculty/dick/cs202/dictionary.html
fi
echo "
"
echo "To see the complete index of the notes for CS202: Comp Sci II: "
echo ""
echo "Index to CS202"
echo ""
echo "Search for items containing a matching string. "
echo "
"
echo "
"
echo ""