Skip to content

Instantly share code, notes, and snippets.

@janodev
Created June 14, 2016 07:09
Show Gist options
  • Save janodev/37059bb5b3e874505d91e045c8fed188 to your computer and use it in GitHub Desktop.
Save janodev/37059bb5b3e874505d91e045c8fed188 to your computer and use it in GitHub Desktop.
Check files for corruption. From https://blog.barthe.ph/2014/06/10/hfs-plus-bit-rot/
find . -type f -a ! -name ".DS_Store" -exec shasum '{}' \; > shasums.txt
shasum -c < shasums.txt > check.txt
cat check.txt | fgrep -v OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment