Created
July 6, 2015 23:59
-
-
Save stevenharman/e7df5e5190936d781bed to your computer and use it in GitHub Desktop.
Compare a directory of large binary files (1080p HD video, in this case) to another set of those files to make sure they're byte-for-byte identical.
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
# Back story: I uploaded a dozen or so HD (1080p) movies to my Synology while across the country. | |
# Now I want to make sure the uploads all came through without corruption. | |
for video in *.mp4; do | |
cmp "./${video}" "/Volumes/video/Movies/${video}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment