Created
December 17, 2018 20:10
-
-
Save mpalet/854c5faf70474f431ca6c7876784e4ab to your computer and use it in GitHub Desktop.
compare files recursively
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
shopt -s globstar | |
for f in **/*.ptx; do for i in **/*.ptx; do if ! [[ $f -ef $i ]]; then cmp -s "$f" "$i" && echo "Files $f and $i are identical"; fi; done; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment