Created
June 6, 2020 11:38
-
-
Save claudius108/00be40b21f623aeb22b500b145f6a110 to your computer and use it in GitHub Desktop.
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
Files that are in both Dir1 and Dir2: | |
find "$Dir1/" "$Dir2/" -printf '%P\n' | sort | uniq -d | |
Files that are in Dir1 but not in Dir2: | |
find "$Dir1/" "$Dir2/" "$Dir2/" -printf '%P\n' | sort | uniq -u | |
Files that are in Dir2 but not in Dir1: | |
find "$Dir1/" "$Dir1/" "$Dir2/" -printf '%P\n' | sort | uniq -u | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment