8 lines
102 B
Text
8 lines
102 B
Text
arr=( idx1 idx2 )
|
|
i='arr[1]'
|
|
echo ${!i}
|
|
echo ${!i/x/X}
|
|
|
|
typeset -n f='arr[1]'
|
|
echo ${f}
|
|
echo ${f/x/X}
|