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

RE: Selecting leaf directories only



> 
> 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



Messages sorted by: Reverse Date, Date, Thread, Author