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 16238
- From: Pete Johns <pete@xxxxxxxxxx>
- To: TJ Luoma <luomat@xxxxxxxxx>
- Subject: Re: `ls *(.)` shows "just files", what shows "just folders"?
- Date: Mon, 15 Aug 2011 11:39:58 +1000
- Cc: Zsh Users <zsh-users@xxxxxxx>
- 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>
On Sun, 2011-08-14 at 21:08:39 -0400, TJ Luoma sent:
>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?
>
Unsurprisingly, yes!
ls -d *(/)
This is described here: http://linux.die.net/man/1/zshexpn
Hope this helps;
--paj
Messages sorted by:
Reverse Date,
Date,
Thread,
Author