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 38336
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [golf?] harvesting only the mached part of the matched files
- Date: Mon, 25 Apr 2016 09:32:08 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=menpnr6zbOmUbFxs/sCLGbSPKEjW/DlwyS+URDikeW0=; b=C9i1lWqih/pUQb+g74BaZfjj/sPTsPMnOVvPCidloLatiEy/jz7PNFT5i4IGW6FuU4 jvIOAa4tuIUrkeR4jmurDTSKKmHAPbxjszW79p6YbRVqVHAroCs+75EoAQw5GCaka/tb eDDEt1H3OujL5YG/Xek07I7cB9X/91giPabA7vOG9a7PoHPVeY/oxMAyBR+Qer3URtgJ hepZ2qW4Pu5Ijb2/KgETmhgxwucYWgM+AbMik5VRdFeBJrAaZSVUtL3/SFDUbGyMEO96 VOWqb5Y/YxqoZvShfOlPCiBQOpZ2NEclE21lUbeNXqCCGXmC02yjms7/T6feB55pKuO1 C55g==
- In-reply-to: <20160425151919.GA3926@home.u-strasbg.fr>
- 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>
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} )':) )
But this is probably shortest:
k=( /dev/sg<->(on:t:s/sg/) )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author