URL: https://linuxfr.org/forums/programmation-shell/posts/faire-un-if-or-or-or Title: faire un if or or or ?? Authors: DtekT Date: 2006年02月03日T14:35:36+01:00 Tags: Score: 0 Bonjour à tous, je cherche à écrire en shell : si toto nonégal à 0 ou à 23 ou à 24 alors ecrire bonjour sinon ecrire erreur fsi j'ai essayé ca if [ "$toto" -ne "0" -o "$toto" -ne "23" -o "$toto" -ne "24" ]; then echo bonjour else echo erreur fi mais ca ne marche pas et je n'arrive pas a trouver une syntaxe correcte... pourriez vous m'aider s'ilvouplait merci ;)

AltStyle によって変換されたページ (->オリジナル) /