2012-03-04 MacPorts(に限らない)で複数のバージョンをインストールしているportを表示する MacPorts cut sort uniq awk shell script $ port echo installed | cut -d ' ' -f 1 | sort | uniq -c | awk '$1 > 1 {print}'