Armando, Isso funcion?ria da mesma forma se voc? usar os operadores matem?ticos da seguinte forma:
if ((expressao)); then fa?a isso else fa?a isso fi onde express?o pode ser: x == 1 x menor que 1 x <= 1 x ? menor ou igual a 1 x > 1 x ? maior que 1 x >= 1 x ? maior ou igual a 1 x != 1 x ? diferente de 1 Citando Armando <[EMAIL PROTECTED]>: > 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 > > ------------------------------------ Plight Sistemas - www.plight.com.br -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

