Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[golf?] harvesting only the mached part of the matched files
- X-seq: zsh-workers 38335
- From: Marc Chantreux <khatar@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [golf?] harvesting only the mached part of the matched files
- Date: Mon, 25 Apr 2016 17:19:19 +0200
- 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
hello,
i have
/dev/sg0
/dev/sg1
/dev/sg9
i want k as
k=( 0 1 9 )
so ... i got
k=()
: /dev/sg[0-9]##(one:'k+=${REPLY#/dev/sg}':)
any shorter solution ?
regards
marc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author