You are viewing a single comment's thread. Return to all comments →
I believe you have a small mistake in the problem statement. Bash arrays are indexed starting from zero, not 1.
$ a=(a b c) `$ echo $`{a[0]} a `$ echo $`{a[1]} b
Seems like cookies are disabled on this browser, please enable them to open this website
Slice an Array
You are viewing a single comment's thread. Return to all comments →
I believe you have a small mistake in the problem statement. Bash arrays are indexed starting from zero, not 1.