Bash loop string and add string to it
Your bash syntax is not correct.
#!/bin/bashstring1=hellostring2=worldoutput=$string1" "$string2for i in {1..10} ; do echo $output output=$output" "$string2done
Edit: or, taking into account the comments below for the sake of beauty of code:
#!/bin/bashstring1="hello"string2="world"output="$string1 $string2"for ((i = 1; i <= 10; i++)) ; do echo "$output" output+=" $string2"done