Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: find duplicate files
- X-seq: zsh-users 23900
- From: Emanuel Berg <moasenwood@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: find duplicate files
- Date: Sat, 06 Apr 2019 16:44:53 +0200
- Cancel-lock: sha1:IeOKKg04opgMVl5V0xXOrKaxolU=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-copies-to: never
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <86v9zrbsic.fsf@zoho.eu> <20190406130242.GA29292@trot>
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