I want append to a string so that every time I loop over it will add say "test" to the string.
Like in PHP you would do:
$teststr = "test1
"
$teststr .= "test2
"
echo = "$teststr"
echos:
test1
test2
But I need to do this in a shell script
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…