#!/bin/sh #echo HTTP/1.0 200 OK echo Content-type: text/html echo Server: $SERVER_SOFTWARE echo echo \\search results \ echo \ echo \ cd /nfs/control/c1/gopher/gopher-data/Calendars/Events/Upcoming #setenv QUERY_STRING `echo $QUERY_STRING | sed -e 's/+/\.\*/'` # above line doesn't work: echo 'See JFI online calendar for full text...
' echo I searched the JFI events calendar for the string \${QUERY_STRING}\, and found\ echo 'no matches.' | head -39 `egrep -li -- $QUERY_STRING *` | sed -e 's/^==>.*<==/
/' | sed -e 's/\(...\)$/\1
/' # echo # #/a1/httpd/cgi-bin/pubgrep $QUERY_STRING #grep -iv private /tmp/queryoutput | head -100 | sed -e 's/^/
/' | sed -e 's/\ /
/g' echo \
\
# done