Created
October 20, 2023 12:45
-
-
Save checco/1e2a07c722cef00796d829e7ad7a41e5 to your computer and use it in GitHub Desktop.
Print a md5 checksum for directories recursively
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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