Skip to content

Instantly share code, notes, and snippets.

@oakwhiz
Last active August 29, 2015 14:04
Show Gist options
  • Save oakwhiz/eb04a6102113a62d2583 to your computer and use it in GitHub Desktop.
Save oakwhiz/eb04a6102113a62d2583 to your computer and use it in GitHub Desktop.
Bash script to compare two directory trees, including the files, without actually comparing the content of the files themselves.
find "$2" -printf "%P\n" | sort | diff - <(find "$1" -printf "%P\n" | sort)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment