ok...let's make a super simple web page just using bash (well...and some html)
the first 2 lines are required ofcourse
# let's set how the script will be viewed
echo "Content-type: text/html"
# now for the guts :)
echo "Today is " $(date)
# if we want to enter text from a command without it being changed
echo "The users logged onto the server are: "
# we would use the pre tag
and that is basically it...
now you just have to make it executable and stick it into the
<web server base>/cgi-bin/ directory
have fun with this....