Skip to content

Instantly share code, notes, and snippets.

@angelovangel
Last active March 26, 2021 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovangel/cb90f7de940f60f11403ef3d1e6a4f6b to your computer and use it in GitHub Desktop.
Save angelovangel/cb90f7de940f60f11403ef3d1e6a4f6b to your computer and use it in GitHub Desktop.
checksum many files
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