I have a list formatted as below. If I replace the list by, say, "aaa bbb ccc", everything works fine. Anyone an idea?
list=$(echo -e "1.1 1.2 mgmt")
n=0
for i in $list; do
let "array1_$i[$n]=$(date "+%N")"
((++n))
done
n=0
for i in $list; do
var=array1_$i[$n]
echo ${!var}
((++n))
done
thanks in advance for any ideas...