On Wed, Jun 26, 2024 at 11:19 AM alex xmb sw ratchev <fxmb...@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 <zsan...@gmail.com> wrote:
>>
>> $ array=( zero one two three four five six )
>> $ printf '%s\n' "${array[@]( 1 5 )}"
>> one
>> five

This is different functionality.

Reply via email to