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

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



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