Ola,

No shell script para se comparar numeros usa-se a seguinte tabela:

-lt  menor que
-le  menor igual que
-gt  maior que
-ge  maior igual que
-eq  igual
-ne  diferente

Quando for tratar strings sim pode se usar essa outra tabela:

=            igual
!=           diferente
-z string    Se o comprimento for 0 retorna  true

-n string    Se o comprimento for maior que 0 retorna true

string       Se o comprimento for maior que 0 retorna true


t+

[ ]'s



--




Use Your Hadrion WebMail too!

Access: http://www.hadrion.com.br
Doubts? [EMAIL PROTECTED]

________________________________________________
This mail was sent by HadrionWebMail 1.0


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Responder a