Menu Content/Inhalt
Accueil arrow Linux arrow Shell arrow Instructions de Contrôle

Identification






Mot de passe oublié ?
Instructions de Contrôle Convertir en PDF Version imprimable Suggérer par mail
Écrit par VieuxProf   
01-01-1999

if condition
then
   liste de commandes pour code retour de condition=0
else
   liste de commandes pour code retour de condition!=0
fi
commande1 && commande2
if commande1; then commande2; fi
(commande2 s'exécute si commande1 renvoie 0)
commande1 || commande2
if commande1; then : ; else commande2; fi
(commande2 s'exécute si commande1 ne renvoie pas 0)




Dernière mise à jour : ( 02-02-2008 )
 
< Précédent