#!/usr/local/bin/zsh
# The first two echo commands must be present in all script files
echo Content-type: text/html
echo
# from here on is up to you
echo "
DIAL Search results
"
if [ A$name = A ]
then
else
echo "Showing all and only those records that contain the text '$name'"
fi
echo \
echo "Family Name | Title | Given Name | Organisation | Street | Town | State | Country | Postcode |
"
echo "
"
echo "
"
if [ A$name = A ]
then
name='.*'
# change 12/2/96 cpa /home/cotstaff/cavram/www/wcco96/dial/jan24.db |
cat $db |
grep -i "$language" |
grep -i "$profession" |
grep -i "$technique" |
grep -i "$setting" |
grep -i "$target" |
grep -i "$type"
#echo "$language"
#echo "$profession"
#echo "$technique"
#echo "$setting"
#echo "$target"
#echo "$type"
#echo "$db"
#echo "$script"
else
grep -i "$name" "$db"
# change 12/2/96 cpa /home/cotstaff/cavram/www/wcco96/dial/jan24.db
fi
echo "End of data |
"
echo \