Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How do I (*|*/*) ?
- X-seq: zsh-users 30548
- From: Perry Smith <pedz@xxxxxxxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Cc: Philippe Altherr <philippe.altherr@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: How do I (*|*/*) ?
- Date: Sun, 12 Apr 2026 18:23:08 -0500
- Arc-authentication-results: i=1; rspamd-6c65dd77f-x5rcm; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@xxxxxxxxxxxxxxxx
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1776036201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=zI+VFpVtw9B6dq6bjwvej0KOwZ1VN6LGE1UZoR52A3o=; b=eav0eS36jR0Q5K0y1HLm/gO7NmNjhIKxKhkWz+2D8rGrQNOK2IOARiZLmlfA46r1z3xSQq 9RJ0YuQ/sOINaFy15wcdBCZ/kha61dBxZYXWmt2M93butPXXZf2R3NRHEHhHyF0vaS4Tbk nZQEA/gGACLOfDHR9EtsvDM1neC4l8OIg88hKYc9pMUkB/2fH4dCIAuE5tw1kj8aRkUEld oe4avrKDQt6npBXvQhQiw5X4j6hR9bQu0jhxmQtpm8ET20M6ZG+Kc54Pks7bpX6AmGPBVY gOnxFRej1jkdsm8BEg77ONv84BA1Xa3pN0nHJaBguypD3J/0AzCTHjop5d+zxw==
- Arc-seal: i=1; a=rsa-sha256; d=mailchannels.net; s=arc-2022; cv=none; t=1776036201; b=Pj9NydNj27NUDt2/Lvt9q4lLUxoNJl/W5Pqy9M/ekPQZf10sEUv0UJSZJqbsMNU/Tx8V1y LJzG8jWNTkjWWKYceu4++b9AKH+tEJjl2nEv322Ke1VULCEXEoXOkJ1GeDGdHWFNxU34zQ ahnArLcL9M8ua+R4AhWWKB1fPEFNTtdLazCG5luO0w6m6qJKv2iztzpo6X0jKOm4uz0Uhu do2xvXOqDp3EYhrTdtdeIHxUEgkGaagppvj6NB53zoJMHIefbzPrtBVe4IcTYSS82d3eOQ CtIYRlDqaa72xqTXNCm6ZNsWAQC9AWhereYG/QzA9CNf3ePh58v4nI1ZNWHdiA==
- Archived-at: <https://zsh.org/users/30548>
- In-reply-to: <d2ee7997-208a-41a5-8b8e-14d934e54ec6@app.fastmail.com>
- List-id: <zsh-users.zsh.org>
- References: <62FE8A85-AB8F-4B6E-9246-CA42FB03B3D5@easesoftware.com> <CAGdYchsDbTjkGwF6p6VsJJknWUoLZZmFXsFnGrj1k6OoFcP4uQ@mail.gmail.com> <d2ee7997-208a-41a5-8b8e-14d934e54ec6@app.fastmail.com>
> On Apr 12, 2026, at 18:13, dana <dana@xxxxxxx> wrote:
>
> On Sun 12 Apr 2026, at 17:55, Philippe Altherr wrote:
>> You can use ** instead of (*|*/*|*/*/*) but it won't limit itself to a
>> maximum of 3 directories (see Recursive Globbing for more details). If
>> the limiting is crucial, you can do that afterwards by filtering the
>> result with ${name:#pattern}.
>
> i was going to suggest this:
>
> */**/.DS_Store~*/*/*/*/*(OL[1,5])
>
> as you said it will descend as far as it can, which will make it slower
> than necessary, but it's probably fine unless it's an extremely deep
> file structure or it's on a slow fs like a network share
>
> if there's a better way i can't think of it atm
Thank you to both of you. I was in my home directory and ** would take too long. This all started from just a whim. I didn’t know .DS_Store files (the files used by the Finder on macOS) grew to be 100K big. I just wanted a smattering of .DS_Store files sorted by size. Turns out, ls can do that with -S. But, the basic question has been something I kept meaning to explore.
As far as the Note… Dahh!!! Sorry. I really did look. I assumed such a note would be with the a or b components of the a|b syntax. I need to look one paragraph up. :-(
Messages sorted by:
Reverse Date,
Date,
Thread,
Author