#!/bin/sh # generate md5 checksums for all Vol-*.zip files. # checksum of file Vol-123.zip is stored in Vol-123.md5 for file in Vol-*.zip do if [ -f "${file}" ]; then bn=`basename "${file}" .zip` md5sum ${file} > ${bn}.md5 fi done