minus-squareRick_C137@programming.devOPtoLinux@lemmy.ml•Check two conditions in bash ? [solved]linkfedilinkarrow-up3·edit-212 days agoThank you all for yours input What finally did work if [[ -z VARIABLE1 && -z VARIABLE2 ]]; then echo "OK" fi If only Linux was using Python syntax that would be so much more intuitive… linkfedilink
minus-squareRick_C137@programming.devOPtoLinux@lemmy.ml•Check two conditions in bash ? [solved]linkfedilinkarrow-up2·12 days agonot working, both variables do not exist and the echo "OK" do not trigger. linkfedilink
Rick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-212 days agoCheck two conditions in bash ? [solved]plus-squaremessage-squaremessage-square16fedilinkarrow-up124arrow-down13
arrow-up121arrow-down1message-squareCheck two conditions in bash ? [solved]plus-squareRick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-212 days agomessage-square16fedilink
Rick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-227 days agoIP range of GAFAM ?plus-squaremessage-squaremessage-square0fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1message-squareIP range of GAFAM ?plus-squareRick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-227 days agomessage-square0fedilink
Rick_C137@programming.dev to Selfhosted@lemmy.worldEnglish · edit-22 months agoGeoIP Database to use with FreeNginx !? [ solved ]plus-squaremessage-squaremessage-square0fedilinkarrow-up11arrow-down11
arrow-up10arrow-down1message-squareGeoIP Database to use with FreeNginx !? [ solved ]plus-squareRick_C137@programming.dev to Selfhosted@lemmy.worldEnglish · edit-22 months agomessage-square0fedilink
Rick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-22 months agoGeoIP Database to use with FreeNginx !? [ solved ]plus-squaremessage-squaremessage-square1fedilinkarrow-up13arrow-down10
arrow-up13arrow-down1message-squareGeoIP Database to use with FreeNginx !? [ solved ]plus-squareRick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-22 months agomessage-square1fedilink
Thank you all for yours input
What finally did work
if [[ -z VARIABLE1 && -z VARIABLE2 ]]; then echo "OK" fi
If only Linux was using Python syntax that would be so much more intuitive…