#!/bin/bash

read num
num=`echo $num|sed 's/^[^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1/'` 

echo "Content-Type: text/html"
echo ""
echo ""
echo "<html>"
echo "<head>"
echo "<titleCSCI 463 integer list</title>"
echo "</head>";  echo  "<body>"
echo "<br>List of integers for the CSCI 463 numeric conversion assn.<p>"
echo "Based on Z-Id $num<p>"
echo "`./intl $num`"
echo "</body>"
echo "</html>"
