[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Problemas com Shell Code
From: |
Herbert Alexander Faleiros |
Subject: |
Re: [shell-script] Problemas com Shell Code |
Date: |
Thu, 12 Jan 2006 01:53:01 -0200 |
User-agent: |
KMail/1.9 |
On Thursday 12 January 2006 00:57, alonso.feliciano wrote:
[cut]
> if $horas = 14
[cut]
O problema está no seu "if", tenta assim:
$ clear; date; echo Que horas sao?; read horas; \
[ ${horas} = 14 ] && echo Sao 14 horas
Ou (de forma mais didática):
clear
date
echo "Que horas sao?"
read horas
if [ "$horas" = "14" ]; then
echo "Sao 14 horas"
fi
Até,
Herbert.
- Problemas com Shell Code, alonso.feliciano, 2006/01/11
- Re: [shell-script] Problemas com Shell Code,
Herbert Alexander Faleiros <=