Text File

#!/bin/sh # @(#) mksheet 1.2 94/09/29 11:56:26 # # mksheet - Generate a "contact image" sheet of all the images in # the current directory. The "URL_prefix" argument is prepended # to the file name to get a full URL, e.g. something like "/I/images". #

USAGE="usage: $0 URL_prefix" Progname=`basename $0`

if [ $# -ne 1 ] ; then echo "" 1>&2 exit 1 fi Prefix="$1"

u=${LOGNAME-${USER-"?unknown?"}} h=`( hostname || uuname -l || uname -n || echo "?oopsvax?" ) 2>/dev/null`

echo '<HTML><HEADER><TITLE>Image Listing Sheet</TITLE><HEADER><BODY>' for x in *.gif ; do echo "<IMG SRC=\"/\"> <A HREF=\"/\"></A><P>" done cat << EOM <LISTING> Created with the "" command by @ on `date`. </LISTING> EOM

echo '</BODY></HTML>'