#!/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 "Input a regular expression:" echo "

" 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 "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 ""