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

RE: Selecting leaf directories only



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