shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] testar se é numérico


From: Tiago Barcellos Peczenyj
Subject: Re: [shell-script] testar se é numérico
Date: Fri, 24 Nov 2006 17:50:18 -0200

Humm sera que é a versão do bash ou alguma variavel de ambiente
atrapalha esta construção?

Também estou com duvidas :/

On 11/24/06, Élvio Barbalho <address@hidden> wrote:

Tiago bom dia, tentei usar a expressão abaixo e não funcionou:


[elvio@10:31:49 elvio]$ ./teste.sh
./teste.sh: line 5: conditional binary operator expected
./teste.sh: line 5: syntax error near `=~'
./teste.sh: line 5: ` if [[ "$1" =~ '^[0-9]*$' ]]; then '
[elvio@10:31:54 elvio]$




--
Tiago B Peczenyj
Linux User #405772

# cd /pub
# more beer


reply via email to

[Prev in Thread] Current Thread [Next in Thread]