#!/bin/ksh
# File:web_page_writer 

echo "Write some text for your web page:"
text=
while :
do
	echo -n "Enter line, 'q' to quit: "
	read line
	if [ "$line" = q ];then
		break
	fi
 	text="${text}${line}<br>"
done

cat<<EOF>x.html
<html>
<head><title>My Webpage!</title></head>
<body bgcolor="blue">
$text
</body>
</html>
EOF
