Skip to content

Instantly share code, notes, and snippets.

@arsham
Created January 12, 2015 10:30
Show Gist options
  • Save arsham/aaa4527720cee7128e4d to your computer and use it in GitHub Desktop.
Save arsham/aaa4527720cee7128e4d to your computer and use it in GitHub Desktop.
Returns the md5sum of the folder. It's recursive
#!/bin/bash
find $1/ -type f -exec md5sum {} + | awk '{print $1}' | sort | md5sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment