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
Monday, May 25, 2009
String Concatenation in Bash
Labels:
bash,
concatenation,
string
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment