I have two bash arrays, and I want to append array strings to the end of the name array elements.
array=(a b c)
name=(toto_ tata_)
result :
toto_a
toto_b
toto_c
tata_a
tata_b
tata_c
I tried those command :
for i in "${name[@]}"
do
arra=( "${i/%/$array[@]}" )
done
printf '%s\n' "${arra[@]}"