Explorar el Código

finish if statement with date command

master
Anthony Fadly hace 1 año
padre
commit
96d5ecdaaa
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8
    1
      oct1.md

+ 8
- 1
oct1.md Ver fichero

@@ -76,5 +76,12 @@ fi #end if

DAY_OF_WEEK=$(date +%A) # set var to output of date command eg "Monday"

if [[ "$DAY_OF_WEEK" == "Monday" ]]
if [[ "$DAY_OF_WEEK" == "Monday" ]];
then
echo "It is Monday my dudes."
echo "Today you have CIT160!"
else
echo "It is not Monday my dudes."
echo "Better do your CIT labs!"
fi
```

Cargando…
Cancelar
Guardar