Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Selecting leaf directories only
- X-seq: zsh-users 3607
- From: Artur Penttinen <artur.penttinen@xxxxxxxxxxxxxx>
- To: ZSH Users <zsh-users@xxxxxxxxxxxxxx>
- Subject: RE: Selecting leaf directories only
- Date: Wed, 7 Feb 2001 19:15:45 +0200 (EET)
- In-reply-to: <000901c090e8$86ef8370$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
On Wed, 7 Feb 2001, Andrej Borsenkow wrote:
> From: Andrej Borsenkow <Andrej.Borsenkow@xxxxxxxxxxxxxx>
> To: zsh-users@xxxxxxxxxxxxxx
> Subject: RE: Selecting leaf directories only
> Date: Wed, 7 Feb 2001 12:29:53 +0300
> X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
> X-Procmail-List: Z Shell Users Mailing List
>
> >
> > Black magic. Awesome :-)
> >
> > But it does not completely solve the problem (it does in my specific case,
> > thank you). It needs at least two levels;
>
> Actually, it works with exactly two levels only:
>
> bor@itsrm2% mkdir -p foo/bar/{baz1,baz2}
> bor@itsrm2% print -l */**/*(/)
> foo/bar
> ^^^^^^^
> foo/bar/baz1
> foo/bar/baz2
# mkdir -p foo/bar/{baz1,baz2}
# print -l */**/*(/)
foo/bar
foo/bar/baz1
foo/bar/baz2
# print -l */*/*(/)
foo/bar/baz1
foo/bar/baz2
wbw,artur
Messages sorted by:
Reverse Date,
Date,
Thread,
Author