Skip to content

Instantly share code, notes, and snippets.

@checco
Created October 20, 2023 12:45
Print a md5 checksum for directories recursively
#!/bin/bash
for dir in `find . -type d -not -path '*/.*'`;
do
echo -en "${dir}: ";
find ${dir} -type f -not -path '*/.*' -exec md5sum {} \; | md5sum | awk '{print $1}';
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment