#!/bin/bash # # SRC="./images" echo "Content-type: text/html\n\n"; cat partone.html LIST=`ls -1 $SRC` f="1" for i in $LIST; do if [ $f = "1" ] ; then echo \"$i\" f="0" else echo ",\"$i\"" fi done cat parttwo.html