Bulk-generate MD5 hashcodes for certain files in subfolders
Posted: Thu Jun 11, 2015 5:20 pm
Here's a one-liner for generating MD5 hashcodes for files matching a certain pattern, but distributed in different subfolders.
For example, I have several MPEG files in different subfolders and I'd like to create a MD5SUM file next to them:
Due to md5sum's stderr-output, it's silent, but I was too lazy to improve that right now
For example, I have several MPEG files in different subfolders and I'd like to create a MD5SUM file next to them:
Code: Select all
find BASE_FOLDER -name "*.mpg" -type f -execdir md5sum {} > MD5SUMS \;