concatenate string in shell script

Alec Shaw alecshaw at rapidwave.net
Thu Mar 16 09:08:53 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';
>
>  
>
Try
x="abc"
x=$x"dfg"
x=$x"hij"




More information about the PLUG mailing list