#!/bin/sh spoof=dick home=/home/u/faculty/dick/ bin=$home/bin export spoof home bin echo Content-type: text/html echo echo "
Number found="n;}'| sed '/^
Number found/!s/.*/&<\/A>, . . . /'
echo ' \1<\/A>. /'
fi
done
for where in math logic notn type intro
do
if expr "$QUERY_STRING" : ".*$where=on" >/dev/null
then
#echo Searching for $SEARCH in maths/"*"$where"*"
egrep $OPTION "$SEARCH.*::" $home/maths/*$where*mth|
/u/faculty/dick/bin/ascii2html |
sed 's/.home/u/faculty/dick.maths.\(.*\)mth:/ \1<\/A>. /'
fi
done
if expr "$QUERY_STRING" : ".*UNIX=on" >/dev/null
then
where=cs360
echo " Also see my Software Development Page"
echo "
'
fi
QUERY_STRING="glossary=on&""$QUERY_STRING"
for where in glossary syntax lexicon semantics methods
do
if expr "$QUERY_STRING" : ".*$where=on" >/dev/null
then
#echo Searching for $SEARCH in samples/"*".$where"*"
egrep $OPTION "$SEARCH.*::" $home/samples/*$where.mth|
/u/faculty/dick/bin/ascii2html |
sed 's/.home/u/faculty/dick.samples.\(.*\).mth:/
Searching for $SEARCH in UNIX ($where/dictionary.html)
"
if [ -r $home/$where/dictionary.html ]
then egrep $OPTION "$SEARCH" $home/$where/dictionary.html
else echo "
Unable to find $home/$where/dictionary.html.
"
fi
fi
for where in se java
do
if expr "$QUERY_STRING" : ".*$where=on" >/dev/null
then
echo "
"
#echo Searching for $SEARCH in $where.*.html
egrep $OPTION "$SEARCH" $home/$where.www.sites.html |
sed 's/
/g'
fi
done
if expr "$QUERY_STRING" : ".*teaching=on" >/dev/null
then
echo "
"
echo 'Terms used my teaching:
'
for where in cs202 cs320 cs330 cs360 cs620
do
# echo "
$where
"
if [ -r $home/$where/dictionary.html ]
then egrep $OPTION "$SEARCH" $home/$where/dictionary.html
else echo "
Unable to find $home/$where/dictionary.html.
"
fi
done | sort -f
echo '
'
fi
echo "
"
echo "
"
echo 'Comment Form
'
echo ''
echo '
'
echo "
"
else
echo "No search specified in \"$QUERY_STRING\""
echo ""
exit 1
fi
fi
echo "