Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [golf?] harvesting only the mached part of the matched files
- X-seq: zsh-workers 38347
- From: Marc Chantreux <khatar@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: [golf?] harvesting only the mached part of the matched files
- Date: Tue, 26 Apr 2016 14:31:48 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- In-reply-to: <CAH+w=7aD+XEadJxY6mPfGa8Rqbqbv9Qc9nZds1TvwLi5C+HKcQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160425151919.GA3926@home.u-strasbg.fr> <CAH+w=7aD+XEadJxY6mPfGa8Rqbqbv9Qc9nZds1TvwLi5C+HKcQ@mail.gmail.com>
hello Bart and thanks for helping again
On Mon, Apr 25, 2016 at 09:32:08AM -0700, Bart Schaefer wrote:
> On Mon, Apr 25, 2016 at 8:19 AM, Marc Chantreux <khatar@xxxxxxxxx> wrote:
> > k=()
> > : /dev/sg[0-9]##(one:'k+=${REPLY#/dev/sg}':)
>
> Yours would be better as:
> k=( /dev/sg<->(one:'reply=( ${REPLY#/dev/sg} )':) )
which is awesome: i missed $reply so many times! i'm very happy it
exits. this one:
k=( /dev/sg<->(on:t:s/sg/) )
is very nice too! :t is a very good idea.
regards!
marc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author