#!/bin/sh # Find duplicates in the root directory by MD5 hash # Usage : ./dupcheck | sort -k2 |uniq -d -f1 # set -x cd roots for root in * ; do printf "$root\t" printf "`openssl x509 -inform DER -in "$root" -fingerprint -noout`\n" done