[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Adicionar String a Variavel
From: |
Bruno Coimbra |
Subject: |
Re: [shell-script] Adicionar String a Variavel |
Date: |
Wed, 24 Sep 2008 13:55:21 -0300 |
User-agent: |
KMail/1.9.9 |
On Wednesday 24 September 2008 13:49:51 thiagomz wrote:
> Pessoal,
>
> Seguinte... tenho uma variavel e preciso adicionar uma string a ela
>
> Exemplo
>
> BASE=/opt
> BASEBKP=$BASE+w
>
> Preciso que $BASEBKP tenha o conteúdo
>
> /optw
>
> Dei uma pesquisada no historico mas nao achei nda.
faz
$ BASE=/opt
$ BASEBKP="${BASE}w"
$ echo $BASEBKP
/optw
Att,
--
Bruno Coimbra
address@hidden
Slackware: Simplicity is Divine!