Voglio aggiungere una stringa in modo che ogni volta che eseguo il ciclo su di esso aggiunga "prova" alla stringa.Come si aggiunge a una stringa già esistente?
Come in PHP si farebbe:
$teststr = "test1\n"
$teststr .= "test2\n"
echo = "$teststr"
Echos:
test1
test2
ma ho bisogno di fare questo in uno script di shell
questo sembra essere il più facile da leggere metodo IMO –