Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daniambrosio/cfcec59c912c8ee3b32ac14f49eba300 to your computer and use it in GitHub Desktop.
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 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