Created
December 22, 2016 11:47
-
-
Save enil/f7ec10b07001b3aed078063daaa5bb05 to your computer and use it in GitHub Desktop.
Verify SHA-256 checksums of only the files that exist
This file contains hidden or 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
# sha256sum doesn't like if the checksum file contains entries for missing files | |
awk '{ if (system("test -f " $2) == 0) { print $0 } }' $1 | sha256sum -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment