Skip to content

Instantly share code, notes, and snippets.

@checco
Created October 20, 2023 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save checco/1e2a07c722cef00796d829e7ad7a41e5 to your computer and use it in GitHub Desktop.
Save checco/1e2a07c722cef00796d829e7ad7a41e5 to your computer and use it in GitHub Desktop.
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