concatenate string in shell script

Dennis devel at muhlesteins.com
Thu Mar 16 09:04:27 MST 2006


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';
I just typed this for a test:
> e='abc'; e=$e"dfg"; e=$e"hij"; echo $e
abcdfghij

Works for me.
-Dennis
> ------------------------------------------------------------------------
>
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */




More information about the PLUG mailing list