Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
case insensitive string match
- X-seq: zsh-users 17528
- From: rahul <rahul2012@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: case insensitive string match
- Date: Thu, 3 Jan 2013 16:03:56 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=z9rKaBZu39YZWeIx/Pk6DL2Nloa/8RQmk8RYHmZYPAA=; b=DlaWrGjfUh4A+aE3wJQ8yUgPR/dpzDquNB08RNkojtwwQqrYOrIlBmtfeyX74gcBMi R6qd6G6H3KOEQCgmaqMieMVlvBYB+tXO3Tq4MgTy3GhVr6iocljnKh9T7Oqp9iRUV6qa d3KrSwo3MGl6pbCjKER+ptn5qgHw3nLVHTtilg8fGq/xQLDQ4Upq/eTFb4JVwljIl+23 FtpblSiDdf5wi5mlD4ncjbjYUn4/BpC+TAGwghsph6ajSW5GE/EnW8KAL2tgxBEb43kX A8ZJkXNNRX1T5WamMLPRAz533LeDxbrggqUdN+ydDEU2vVWNKMsvrF+YLzKp7nRnXT8R PKIQ==
- 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
I've been using this for doing some filtering from an array:
matched=(${(M)array:#*$patt*})
Now I need to have an option of case insensitive search. Looked through the
user's guide and other sources but I don't see a flag to ignore case. Is
there a way without changing this to use grep.
I also dont suppose approximate matching can be used here (that's only for
filename globbing, right?)
--
rahul
Messages sorted by:
Reverse Date,
Date,
Thread,
Author