Last active
January 13, 2018 21:25
-
-
Save pdebski/2ad9fa7897fb42f7464ef5b06d046c98 to your computer and use it in GitHub Desktop.
UNIX Linux
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
$ find . -type f -print -exec cmp \{\} /media/pdebski/MEDIA/\{\} \; | |
$ find . -type f -print -exec echo \{\} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compare with find and cmp:
If files differ:
./alien.txt
./alien.txt /media/pdebski/MEDIA/alien.txt differ: byte 8, line 2
If a file on MEDIA is missing:
cmp: /media/pdebski/MEDIA/Alien.avi: No such file or directory