Got a bash array where the indexes start at an arbitrary number and want to get the first index of the array. Is such thing possible to do?
warg=([3]="-t" [4]="-s" [5]="-g")
I want to get the value 3
, the index of the first element of warg
.
Got a bash array where the indexes start at an arbitrary number and want to get the first index of the array. Is such thing possible to do?
warg=([3]="-t" [4]="-s" [5]="-g")
I want to get the value 3
, the index of the first element of warg
.