How to append a string to each element of a Bash array?

Viewed 54679

I have an array in Bash, each element is a string. How can I append another string to each element? In Java, the code is something like:

for (int i=0; i<array.length; i++)
{
    array[i].append("content");
}
4 Answers
Related