#!/bin/bash if [ "$1" == "--help" ]; then echo "duplicated packages" exit 1 fi find ../source -mindepth 2 -maxdepth 2 -type d|sed 's|.*/\([^/]*\)|\1|'|sort|uniq -d