#!/bin/sh ## ## SCRIPT: 00_GEN_imgsDownHTMLpage_4jpggifFiles.sh ## ## PURPOSE: Generate an HTML file showing image files down the page. ## ## Started: 2009aug18 ## Updated: 2010jul21 ## FOR TESTING: # set -v set -x ## ## Initialize the htm output file. ## HTMFILE="temp.htm" echo " Title Goes Here

Title Goes Here

subtitle goes here

A few more notes or links may be added.

Introduction :

" > $HTMFILE ## ## Set the filenames list. ## # FILENAMES=`ls | grep '\.jpg$'` FILENAMES=`ls | egrep '\.jpg$|\.gif$'` ## FOR TESTING: # echo "$FILENAMES" > $HTMFILE # exit ## ## START THE LOOP on the filenames. ## FILECNT=0 for FILENAME in $FILENAMES do FILECNT=`expr $FILECNT + 1` # FILENAMECROP=`echo "$FILENAME" | sed 's|\.jpg$||'` # FILENAMECROP=`echo "$FILENAME" | sed 's|\.jpg$||' | sed 's|\.gif$||'` ## Write out image-display statement. echo " " >> $HTMFILE done ## ## END OF FILES LOOP. Write out bottom of htm file. ## echo "

Reference link goes here

Bottom of my Title Goes Here page.

To return to a previously visited web page location, click on the
Back button of your web browser, a sufficient number of times.
OR, use the History-list option of your web browser.
OR ...

< Go to Start of Images, above. >
< Go to Top of Page, above. >

Page created 2010 xxx 00. Page changed 2010 xxx 00.

" >> $HTMFILE ## ## EDIT HTML FILE ## # kwrite "$HTMFILE" gedit "$HTMFILE" ## ## SHOW HTML FILE ## seamonkey "$HTMFILE"