#!/bin/sh
echo $1 >/tmp/querystring
sed s/ISINDEX=//g /tmp/querystring | sed -e 's/+/\.\*/' >/tmp/shortstring
awk -f witawkprog /tmp/shortstring >/tmp/shortstring2
qs=`cat /tmp/shortstring2`
echo Your search string was \<b\>${qs} \</b\>  >/tmp/queryoutput
echo \<p\> For further information about a found item click \<b\> source document \</b\> . >>/tmp/queryoutput
# echo  >>/tmp/queryoutput
# echo  >>/tmp/queryoutput
#
cd /home/tten/public_html
/bin/egrep -i ${qs} MRSEC/Publications/*.html >>/tmp/queryoutput
/bin/egrep -i ${qs} MRSEC/Publications/abstracts/* >>/tmp/queryoutput
#  done
