Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Filtering an array of file names
- X-seq: zsh-users 21984
- From: Jesper Nygårds <jesper.nygards@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Filtering an array of file names
- Date: Thu, 29 Sep 2016 08:43:57 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=+mcClv59kJNMttO9qINFmKFSCk9mPFzk7WaueqKvZO8=; b=FqkjOINJW4EdTM40bmE0lVtOAgNDeo6f1r8xS+WNb2sNQYvcb3jqIOntGWU5djOr1S KX+WUyufHY5K04P+wMxF7rPej08Bs5w+usRC17HdTbJVVZ/rmXZLyMSpajJ74Jhp6L6/ kygu5T0F5PrUZ2h8S0ak2N0N7HrPfO6dLyUHZeT/A68EPl0a7BBP2HD4NmRqkCJQmRsF Kn+pMzsYoipJKldAriKUbnloGaB0PqQSxWozkMoqNh7eQ1AtF9zLk/yQ0PCxiQghMW/Q hSr//8ovEI1DDpdxYmh/z7UT3YNhATxnmcPHKkVpaq/Y8acDIo91qC6jFvdKEvUEHzoY 7CGA==
- 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
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