[Discuss] fdupes opposite?
Lionel Widdifield
lwiddif-vlug at nexus.spydernet.com
Fri Mar 14 14:34:07 PDT 2008
On Fri, Mar 14, 2008 at 12:36:44PM -0700, Murray Strome wrote:
> Steven Kurylo wrote:
> >> I am looking for a utility that would be similar, except that instead of
> >> finding and listing those files which are duplicated in a directory
> >> tree, it would find those that are unique and list those.
md5sum `find . -type f` | sort | uniq --check-chars=32 --all-repeated=separate
md5sum `find . -type f` | sort | uniq --check-chars=32 --unique
###################
#!/bin/sh
T=/tmp/QQ.temp
P="."
[ -z "$1" ] || P=$1
md5sum `find "$P" -type f` > $T
sort < $T | uniq --check-chars=32 --unique > /tmp/unique.out
sort < $T | uniq --check-chars=32 --all-repeated=separate > /tmp/dupes.out
--
Lionel Widdifield [] Spydernet Resources
[] P.O. Box 5412
lwiddif-sig at spydernet.com [] Victoria BC, Canada V8R 6S4
More information about the Discuss
mailing list