Commande ou en script shell

sajodia -  
 sajodia -
Bonjour,
j'aimerais savoir comment écrire la commande ou en script shell
if [ $jour == 31 ] and if [ $mois == 01 ou 03 ou 05 ou 08 ]

merci
Configuration: Windows XP
Internet Explorer 6.0

1 réponse

  1. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
     
    Salut,
    if [ [ $jour = 31 ]] && [[ $mois = 0[1358] ]]; then ...
    Sans les espaces entre les 2 premiers crochets ouvrants

    ;-))
    0
    1. sajodia
       
      merci bcp et la commande
      and not
      merci
      0