On Thu, 2006-03-16 at 09:00 -0700, Wade Preston Shearer wrote: > Is it possible to do the following (example written in PHP) in a > shell script? > > $var = 'abc'; > $var .= 'dfg'; > $var .= 'hij';
var='abc'
var="${var}dfg"
var="${var}""hij"
var2="klm"
var="${var}${var2}"
I recommend always putting variables in {} and "". {} prevents your
variables from being confused with string literals. "" prevents spaces
from causing problems.
Corey
signature.asc
Description: This is a digitally signed message part
/* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
