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 16236
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: `ls *(.)` shows "just files", what shows "just folders"?
- Date: Mon, 15 Aug 2011 03:41:37 +0200
- 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>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHvT1KXunrpCF2ssMLAkbF_ugw=MybzpqcAq3Zv9hHthKA@mail.gmail.com>
On 2011-08-14 21:08:39 -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?
ls -- *(/)
See "Glob Qualifiers" in the zshexpn man page.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author