lundi 15 novembre 2021

Can anyone help me to finde the error in code?

I need help to find the appropriate way to write my conditional statement because it is not working.

Thank you!

enter image description here

cumonth= date +%m
cudinamic=



if [ $cumonth =10 ];
then
cudinamic=a
elif [ $cumonth =11]; 
then
cudinamic=b
elif [ $cumonth =12];
then 
cudinamic=c
else
cudinamic=$cumonth 
fi

#Echo display message

$echo $ytday  
$echo $cmonth 
echo "$cudinamic"

Aucun commentaire:

Enregistrer un commentaire