zsh-users
 help / color / mirror / code / Atom feed
* Filtering an array of file names
@ 2016-09-29  6:43 Jesper Nygårds
  2016-09-29  7:18 ` Bart Schaefer
       [not found] ` <160929001853.ZM27784__20418.9757038423$1475133607$gmane$org@torch.brasslantern.com>
  0 siblings, 2 replies; 6+ messages in thread
From: Jesper Nygårds @ 2016-09-29  6:43 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 273 bytes --]

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-29 15:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-29  6:43 Filtering an array of file names Jesper Nygårds
2016-09-29  7:18 ` Bart Schaefer
2016-09-29  7:38   ` Jesper Nygårds
2016-09-29  7:54   ` Mikael Magnusson
2016-09-29 15:51     ` Bart Schaefer
     [not found] ` <160929001853.ZM27784__20418.9757038423$1475133607$gmane$org@torch.brasslantern.com>
2016-09-29  7:55   ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).