less md5-calcolo-di-una-directory.md
MD5: computing the hash of a directory
# historical archive — written years ago, kept as it was. Some info is dated.
If on OSX you want to compute the md5 value of an entire directory, all you need is the following code
find Directory_Name -type f -exec md5 {} + | awk '{print $8}' | sort | md5
The command computes the hashes of every file and finally generates a cumulative one!
The Linux variant is:
find Directory_Name -type f -exec md5sum {} + | awk '{print $1}' | sort | md5sum