How can I concatenate strings and variables in a shell script?
stringOne = "foo"
stringTwo = "anythingButBar"
stringThree = "? and ?"
I want to output "foo and anythingButBar"
|
How can I concatenate strings and variables in a shell script?
I want to output "foo and anythingButBar"
| ||||
|
feedback
|
|
Nothing special, you just need to add them to your declaration. for example:
if you want the literal word 'and' between them:
| |||||||||||||
feedback
|
|
If instead you had:
you could do:
| |||
|
feedback
|