Skip to content

Instantly share code, notes, and snippets.

@dobsondev
Last active August 29, 2015 14:01
Show Gist options
  • Save dobsondev/66296e4702cb8f9989b6 to your computer and use it in GitHub Desktop.
Save dobsondev/66296e4702cb8f9989b6 to your computer and use it in GitHub Desktop.
Function for .bashrc that shows the differences between two directories.
# 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