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

Re: Selecting leaf directories only



On Wed, Feb 07, 2001 at 10:44:31AM +0300, Andrej Borsenkow wrote:
> **/*(/) gives me all (sub-)directories. Any easy way to get leaf directories
> only? I.e. in case

Isn't it true that the link count of leaf directories is exactly 2?
Therefore I would try **/*(/l2) .

Regards,
Akos

-- 
Akos Szalkai <szalkai@xxxxx>
IT Consultant
2F 2000 Szamitastechnikai es Szolgaltato Kft.
Tel: (+36-1)-4887700  Fax: (+36-1)-4887709  WWW: http://www.2f.hu/



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