Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pattern matching question
- X-seq: zsh-users 10827
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: pattern matching question
- Date: Wed, 11 Oct 2006 15:25:48 +0200
- In-reply-to: <20061011131505.GA4262@xxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Operating-system: Linux 2.6.16.16 i686
- References: <20061011130213.GA6307@xxxxxxxxxxxxxxxxxxxxx> <20061011131505.GA4262@xxxxxxxxxxxxxxx>
Frank Terbeck <ft@xxxxxxxxxxxxxxxxxx>:
> [snip]
> list=("... one giraffe ..." "... two cows ..." "... one monkey ..." "... three lemmings ...")
Sorry, for not reading your post close enough:
> slist=(${(M)list:#*one [a-z]*})
slist=(${${${(M)list:#*one [a-z]*}##*one }%%[^a-z]*})
> print old:
> print -l $list
> print "\nnew:"
> print -l $slist
> [snap]
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author