#!/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 "$USAGE" 1>&2 exit 1 fi Prefix="$1" u=${LOGNAME-${USER-"?unknown?"}} h=`( hostname || uuname -l || uname -n || echo "?oopsvax?" ) 2>/dev/null` echo '
Image Listing Sheet
' for x in *.gif ; do echo " $x

" done cat << EOM

Created with the "$Progname" command by $u@$h on `date`. EOM echo ''