Sunday, June 7, 2009

Concatenate strings in a shell script

Use ${} to insert a variable into a string and separate is from surrounding text: foo="foo"
echo "${foo}bar"

No comments:

Post a Comment