Created
January 7, 2015 13:59
-
-
Save thomaspatzke/74f4f84879f95af24da6 to your computer and use it in GitHub Desktop.
Generate a list of files with unique content
This file contains 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
find -type f -exec sha256sum {} \; | sort | perl -ne '($h, $f) = /^(\S+)\s+(.*)$/; if (defined $ph && $ph ne $h || !defined $ph) { print "$f\n" } $ph = $h; $pf = $f;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment