Last active
March 26, 2021 16:20
-
-
Save angelovangel/cb90f7de940f60f11403ef3d1e6a4f6b to your computer and use it in GitHub Desktop.
checksum many files
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
Generate checksums for many files in a directory | |
``` | |
# make checksums (use md5 on macos) | |
find ./some_dir -type f -exec md5sum {} \; >> checksums.md5 | |
# check them | |
md5sum -c checksums.md5 | |
# use gnu parallel for really many files? Much faster | |
find ./some_dir -type f | parallel --progress md5sum > checksum.md5 | |
# check if everything ok | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment