M Computers

Figure 1. Result of Running the Improved Script

if [ ! -z "$(file -b $name|grep 'image data')" ] then figuresize $name if [ ! -z "$height" ] ; then echo "<a href=$name><img src=$name border=0" echo "alt=$name height=$size " echo "align="absmiddle" />" echo "$name ($height x $width)</a>" else echo "<a href=$name><img src=$name border=0" echo "alt=$name height=$size" echo "align="absmiddle" />" echo "$name</a>"

fi else echo "<a href=$name>$name</a><br />"

The result of running this improved script (where images are clickable, there's a horizontal rule between entries and so forth) is shown in Figure 1.

Was this article helpful?

0 0

Post a comment