Skip to content

Instantly share code, notes, and snippets.

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