Created
April 4, 2021 01:03
-
-
Save daniambrosio/cfcec59c912c8ee3b32ac14f49eba300 to your computer and use it in GitHub Desktop.
Bash script to generate md5 of all files in a folder to compare
This file contains 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
# This command will generate the md5 for every file in a folder. The result will be the file path and name | |
# followed by checksum for every file | |
find 2004PhotosVideos -type f -exec md5 -r {} \; | sort | tee pv.txt | |
# This command will generate the md5 for every file in a folder. The result will be the checksum for every file | |
# (no file names included) | |
find 2004PhotosVideos -type f -exec md5 -q {} \; | sort | tee pv-q.txt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment