|
| From: | Zachary Santer |
| Subject: | Re: feature suggestion: ability to expand a set of elements of an array or characters of a scalar, given their indices |
| Date: | Wed, 26 Jun 2024 14:18:35 -0400 |
On Wed, Jun 26, 2024 at 11:19 AM alex xmb sw ratchev <fxmbsw7@gmail.com> wrote:
>
> printf %s\\n "${arr[@]:1:5}"
For my array below, this would give you
one
two
three
four
five
> On Tue, Jun 11, 2024, 12:49 PM Zachary Santer <zsanter@gmail.com> wrote:
>>
>> $ array=( zero one two three four five six )
>> $ printf '%s\n' "${array[@]( 1 5 )}"
>> one
>> five
This is different functionality.
| [Prev in Thread] | Current Thread | [Next in Thread] |