$ go get github.com/elrzn/digest-uniq-files
$ ls | grep -E '(jpg|png)$' | wc -l
37
$ digest-uniq-files -ext 'jpg,png'
37 35
$ ls out/ | wc -l
35
elrzn/digest-uniq-files
Recursively find files in a directory by extension, and group them by MD5 digest in an output directory
GoISC