Skip to content

Instantly share code, notes, and snippets.

@ozzieperez
Last active December 20, 2015 20:25
Show Gist options
  • Save ozzieperez/f7aa95d6843841846e80 to your computer and use it in GitHub Desktop.
Save ozzieperez/f7aa95d6843841846e80 to your computer and use it in GitHub Desktop.
Differences in 2 Drives
#Step One: Get the raw diffs... usually takes me an hour
grep -rq dir1 dir2 > rawdiffs.txt
#Step Two: Filter out the junk
grep Only rawdiffs.txt | grep -v '.Spotlight' | grep -v '.fseventsd' | grep -v '.DocumentRevisions' | grep -v '.DS_Store' | grep -v '.TemporaryItems' | sort > filteredDiffs.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment