#!/bin/bash cd $1 rm -f md5.lst for i in $( find -type f); do FILE=${i:2} echo `md5sum -b $FILE` >> md5.lst done