#!/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 thenotes for CS360: "Systems Tools"
else
spoof=dick
echo Query is "$QUERY_STRING"|mail -s lookup360 $spoof@csci.csusb.edu
echo "Items in CS360 dictionary containing a string matching \"$SEARCH\"
"
egrep -i -e "$SEARCH" /home/u/faculty/dick/cs360/notes/dictionary.html
fi
echo "
"
echo "Search for items containing a matching string. "
echo ""
echo "
"
echo ""
echo "To see the complete index of the notes for CS360: Systems Tools:"
echo ""
echo "[Dictionary]"
echo "
"
echo "To see the script for this tool see:"
echo ""
echo "[Script]"
echo ""