Related questions
How do you append to an already existing string?
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\n"
$teststr .= "test2\n"
echo = "$teststr"
echos:
test1
test2
But I …
Concatenating variables in Bash
stupid question no doubt, I'm trying to add a variable to the middle of a variable, so for instance in PHP i would do this:
$mystring = $arg1 . '12' . $arg2 . 'endoffile';
so the output might be 20121201endoffile, how can I …