|
From: | Linda Walsh |
Subject: | Is it possible or RFE to expand ranges of *arrays* |
Date: | Wed, 25 Apr 2012 21:26:10 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 |
I know I can get a="abcdef" echo "${a[2:4]}" = cde how do I do: typeset -a a=(apple berry cherry date); then get: echo ${a[1:2]} = "berry" "cherry" ( non-grouped args) I tried to do it in a function and hurt myself.
[Prev in Thread] | Current Thread | [Next in Thread] |