Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [golf?] harvesting only the mached part of the matched files



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