From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13673 invoked from network); 7 Feb 2001 10:06:16 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Feb 2001 10:06:16 -0000 Received: (qmail 21445 invoked by alias); 7 Feb 2001 10:05:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3606 Received: (qmail 21425 invoked from network); 7 Feb 2001 10:05:47 -0000 From: "Akos Szalkai" Date: Wed, 7 Feb 2001 11:05:43 +0100 To: Andrej Borsenkow Cc: zsh-users@sunsite.dk Subject: Re: Selecting leaf directories only Message-ID: <20010207110542.A1355@2fkft.com> References: <000001c090d9$cedda8b0$21c9ca95@mow.siemens.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000001c090d9$cedda8b0$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Wed, Feb 07, 2001 at 10:44:31AM +0300 X-Operating-System: Linux 2.4.2-pre1 i686 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 IT Consultant 2F 2000 Szamitastechnikai es Szolgaltato Kft. Tel: (+36-1)-4887700 Fax: (+36-1)-4887709 WWW: http://www.2f.hu/