jeudi 9 novembre 2017

bash if clause with and or combined

I'm trying to be smart but it doesn't work. Can anybody help me to do this a bit simpler?

if [[  "${DATUM}" == "${today}" &&  "${STUNDE}" == "${HH24}" ]] || [[  "${DATUM}" == "${today}" &&  "${STUNDE}" == "20" ]] || 
[[  "${DATUM}" == "${today}" &&  "${STUNDE}" == "" && "20" == "${HH24}"  ]]; then

Is there a way to combine it?

Aucun commentaire:

Enregistrer un commentaire