[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Como exibir variáveis
From: |
Daniel Duclos |
Subject: |
Re: [shell-script] Como exibir variáveis |
Date: |
Sat, 15 Sep 2001 14:38:22 -0300 (EST) |
On Sat, 15 Sep 2001 address@hidden wrote:
> Olá lista,
>
> sei que é meio bobo, mas sou novo em shel script,
> gostaria de saber como exibir valores de variáveis na tela,
> algo com:
>
> MES='date +%m'
> echo 'MES'
>
> Só exibe a palavra MES;
>
> Como faço para exibir o valor da vaviável, não
> ela em si?
Use um sifrao na frente ($), assim:
MES=`date +%m`
echo $MES
[]s
Daniel Lobato Duclos - address@hidden - http://www.cybershark.net
---------------------------------------------------------------------------
Open Up Your Mind / And Go Your Own Way
(Sepultura - Breed Apart)
- Como exibir variáveis, lightwave, 2001/09/15
- Re: [shell-script] Como exibir variáveis,
Daniel Duclos <=
- Re: [shell-script] Como exibir variáveis, Vladimir Viana, 2001/09/15
- Re: [shell-script] Como exibir variáveis, Pablo Fernando(IG), 2001/09/15
- Re: [shell-script] Como exibir variáveis, Guilherme Salgado, 2001/09/15
- Re: [shell-script] Como exibir variáveis, HardBeat404, 2001/09/17
- Re: [shell-script] Como exibir variáveis, Renato Marques Alvim Neto, 2001/09/18
- Re: [shell-script] Como exibir variáveis, GBJ, 2001/09/18
- Re: [shell-script] Como exibir variáveis, Wellington, 2001/09/18