#!/bin/sh# a script to help weed out duplicate packages# contained in package lists given as arguments## Requires: libshell. /bin/shell-quotesort"$@"\| grep-v'^ *#'\| sed-s's,[ ]\+, ,g'\| grep-v'^ *$'\| uniq-cd\| while read num str;doecho-n"$str: $num ";pattern="`quote_sed_regexp "$str"`"grep-l"^$pattern$""$@" | tr'\n'' 'echodone\| sort-rn-t: -k2