gen-listing (239B)
1 #!/bin/sh 2 set -x 3 listing=$1 4 shift 5 find >$listing.tmp "$@" -printf '\n%p\t%y%m\t%n\t%l\t' -type f -exec sha512sum '{}' \; || exit $? 6 sort <$listing.tmp >$listing.new || exit $? 7 rm $listing.tmp || exit $? 8 mv $listing.new $listing || exit $?