#!/bin/sh while [ -n "$1" ]; do if [ -L "$1" ]; then echo "`readlink "$1" | md5sum | cut -b 1-33` $1" else md5sum "$1" fi shift done exit $?