Monday, May 25, 2009

String Concatenation in Bash

I needed this for a small script I was doing and it turns out it's very easy.

$a="zig"
$b="zag"
echo $a$b
--> zigzag

Or this:

echo $a"ziggity"$b
--> zigziggityzag

No comments: