Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: list duplicate filenames which only vary by case
- X-seq: zsh-users 19159
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxxxxxx>
- Subject: Re: list duplicate filenames which only vary by case
- Date: Fri, 26 Sep 2014 11:27:30 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RRwp7HQz+jRSV2bNQNa00zrQTzfPkaEORcm4UZZqHTY=; b=ksCp3CagcBpIEbQQCbNM/0CVZHa1FHL33wnysmSAs6+D/WNVMx2XfvFu5bt8j7S0SI cSPGz7S/EEyxgf/mz9F1SK7KuHssfFO2uD6E86tx1rO0QERwapJSyGgXJSjeVIU8tmuQ Bau/7kOk/lo3C9Tn9TvhwdENbAf+42puN5um6LjgawM/FWW7huG+bZL2Ay8Xa2+4E6iy m246Tw+/DsBfqelnjX+moR2pLOmBkDg7RtUJvqZznwX4NE9B0W5vaPKFqrOB6R4A63EZ RL9K1Mj3DcJrfpllVhO/ezieFLl6MFKZkHuTbzi/Va6PpNG62C0fpnWG3phtfq/zadFU K3Bw==
- In-reply-to: <XnsA3B46798CE2D3davidrayninfocouk@80.91.229.13>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA3B46798CE2D3davidrayninfocouk@80.91.229.13>
On 26 September 2014 11:11, zzapper <david@xxxxxxxxxxxxxx> wrote:
> Hi
>
> list files with duplicates in same directory
> e.g.
> house.jpg House.jpg hOUSE.jpg
>
> I guess it needs a e[$REPLY...] clause
() { setopt localoptions nocaseglob; print -rl - *(e,'[[ -n
$REPLY(#q[2]) ]]',) }
I couldn't figure out any syntactically valid way to insert (#i) in
the glob. If that were possible you wouldn't need the function and
local option.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author