Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: `ls *(.)` shows "just files", what shows "just folders"?
- X-seq: zsh-users 16250
- From: Tristan Webb <Tristan.Webb@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: `ls *(.)` shows "just files", what shows "just folders"?
- Date: Mon, 15 Aug 2011 16:38:18 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ah8GgAgENcqlU4Y8kK7JsMR8pN9wOzoGJnVI500+ejI=; b=UKMLYPjGuL5CCzasG97ta972RKGmAvh6uZt4ke4uRtl1qCL8Th8djAOdTBUdjA9OcF jPl+NIACQjyCXSyOc13cOi8Yh3a3+GXDVhQeOSGTltt41pW1QIQ7rcj4YnB5u6FDOqzj IK4N9OX7cIssZ6C1vK8SFhWtjHHFMHgyWNgA4=
- In-reply-to: <CADjGqHvT1KXunrpCF2ssMLAkbF_ugw=MybzpqcAq3Zv9hHthKA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHvT1KXunrpCF2ssMLAkbF_ugw=MybzpqcAq3Zv9hHthKA@mail.gmail.com>
- Sender: Tristan Webb <olafthefrog@xxxxxxxxx>
Hi Tj,
I'm not sure that this is optimal but I use:
ls -d *(/)
Tristan
On Sun, Aug 14, 2011 at 09:08:39PM -0400, TJ Luoma wrote:
> Somewhere along the way I learned that
>
> ls *(.)
>
> will tell 'ls' to only show files (not links, not directories)
>
> Is there a similar command which would show _only_ directories?
>
> (I've been using `find * -maxdepth 0 -type d` but I assume this is
> 'more efficient')
>
> TjL
--
Tristan Webb
PhD Student
Department of Computer Science
and Complexity Science Doctoral Training Centre
Warwick, UK
Tel: 024 765 73789 (Work)
Tel: 01926334727 (Home)
Mobile: 077 082 19078
Website: http://www.warwick.ac.uk/go/tristanwebb
Identi.ca: ksira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author