|
From: | Julio C. Neves |
Subject: | Re: [shell-script] Sintaxe while |
Date: | Fri, 14 Feb 2014 12:55:26 -0200 |
Olá pessoal,
Estou tentando fazer um loop utilizando um while onde só encerro quando uma das duas condições impostas for contemplada, porém estou com dificuldades quanto a sintaxe do while. Tentei de várias formas, mas sem sucesso, vou colocar a forma que acreditava ser correta, mas peço ajuda para ser mais assertivo, pois estou iniciando no shell script.Abraço.OP=0while [ "{$OP}" != "1" ] || [ "${OP}" != "2" ]doread OPdoneEvaldo de Oliveira
[Prev in Thread] Current Thread [Next in Thread]
- Sintaxe while, evaldodeoliveirasrs, 2014/02/14
- Re: [shell-script] Sintaxe while, Julio C. Neves <=
- Re: [shell-script] Sintaxe while, Paulo Bettega, 2014/02/14
- Re: [shell-script] Sintaxe while, evaldodeoliveirasrs, 2014/02/14
- Prev by Date: Sintaxe while
- Next by Date: Re: [shell-script] Sintaxe while
- Previous by thread: Sintaxe while
- Next by thread: Re: [shell-script] Sintaxe while
- Index(es):