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

Re: `ls *(.)` shows "just files", what shows "just folders"?



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