#!/bin/sh spoof=dick home=/home/u/faculty/dick 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. else echo QUERY_STRING="$QUERY_STRING", SEARCH="$SEARCH", lookup.maths| mail -s lookup.maths $spoof@csci.csusb.edu echo "

Items in MATHS dictionary containing a string matching \"$SEARCH\"

" egrep -i -e "$SEARCH" $home/maths/dictionary.html echo '
' echo '

Comment Form

' echo '
' echo 'Please delete the comments that do not apply and edit in' echo 'any other comment you like in its place:' echo '
' echo '' echo '
' echo 'Select to send your comment.' echo '
' fi echo "
" echo "Search for items containing a matching string. " echo "
" echo "Input a regular expression:" echo "

" echo "Hints: Input a word! . is a wild card character, .* a wild card string, | is OR." echo "At this time + does not mean AND. Different browsers treat it differently." echo 'See URL_encoded in comp.html.syntax.
' echo "" echo "
" echo "
" echo ""