Skip to content

Instantly share code, notes, and snippets.

@thomaspatzke
Created January 7, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomaspatzke/74f4f84879f95af24da6 to your computer and use it in GitHub Desktop.
Save thomaspatzke/74f4f84879f95af24da6 to your computer and use it in GitHub Desktop.
Generate a list of files with unique content
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