Last active
August 29, 2015 14:01
-
-
Save dobsondev/66296e4702cb8f9989b6 to your computer and use it in GitHub Desktop.
Function for .bashrc that shows the differences between two directories.
This file contains hidden or 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
# Shows the differences between two directories | |
function dirdiff { | |
diff <(cd "$1" ; ls -1 | sort) <(cd "$2" ; ls -1 | sort) | |
} | |
export -f dirdiff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment