I want append to a string so that every time I loop over it, it will add "test" to the string.
Like in PHP
you would do:
$teststr = "test1\n"
$teststr .= "test2\n"
echo = "$teststr"
Returns:
test1
test2
But I need to do this in a shell script
DESCRIPTION="${variable1}\n${variable2}\n"
? Seems like a cleaner way to achieve the same thing, unless I'm missing something. – Berwickupontweed