Skip to content

Instantly share code, notes, and snippets.

@stevenharman
Created July 6, 2015 23:59
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 stevenharman/e7df5e5190936d781bed to your computer and use it in GitHub Desktop.
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.
# 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