#!/bin/sh if [ -e imgindex.html ]; then rm imgindex.html fi for i in *.png; do echo "" >> imgindex.html done for i in *.jpg; do echo "" >> imgindex.html done