Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: find duplicate files



Paul Hoffman wrote:

> #!/bin/zsh
> find-duplicates () {
>     (( # > 0 )) || set -- *(.N)
>     local dups=0
>     md5sum $@ | sort | uniq -c |
>     grep -qv '^  *1 ' | wc -l | read dups
>     (( dups == 0 )) && echo "no duplicates"
> }

Cool, but doesn't seem to work?

-- 
underground experts united
http://user.it.uu.se/~embe8573



Messages sorted by: Reverse Date, Date, Thread, Author