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

Filtering an array of file names



Suppose I have an array of file names, generated from some external
program. Is there an zsh-idiomatic way of filtering this array to only keep
directories?

I suppose I am looking for something on the line of
${(M)files:#<something>}, but I can't figure out how to do it.


Messages sorted by: Reverse Date, Date, Thread, Author