Skip to content

Instantly share code, notes, and snippets.

@qgp9
Last active August 29, 2015 14:23
Show Gist options
  • Save qgp9/ed2846e3c7cc19745340 to your computer and use it in GitHub Desktop.
Save qgp9/ed2846e3c7cc19745340 to your computer and use it in GitHub Desktop.
find . -type f -print0 | xargs -0 md5sum > md5list.txt
perl -ne '/^(\S+)\s+(.+)/ and push @{$h{$1}},$2}{@$v>1&&print join"\n\t",$k,@$v,"\n"while($k,$v)=each%h' md5list.txt
4b2e12dbe1b2dcec6a731f5af7f0da1a
./testfile.txt
./LICEN2.TXT
./LICEN.TXT
4cb46c5fe2923123824a8e3284b8d53b
./bench.sh
./mytest.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment