minus-squareRick_C137@programming.devOPtoLinux@lemmy.ml•Check two conditions in bash ? [solved]linkfedilinkarrow-up0·edit-24 months 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-up0·4 months agonot working, both variables do not exist and the echo "OK" do not trigger. linkfedilink
Rick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-24 months agoCheck two conditions in bash ? [solved]plus-squaremessage-squaremessage-square15fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1message-squareCheck two conditions in bash ? [solved]plus-squareRick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-24 months agomessage-square15fedilink
Rick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-24 months agoIP range of GAFAM ?plus-squaremessage-squaremessage-square4fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1message-squareIP range of GAFAM ?plus-squareRick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-24 months agomessage-square4fedilink
Rick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-25 months agoCheap SBC x86-64 ?plus-squaremessage-squaremessage-square5fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1message-squareCheap SBC x86-64 ?plus-squareRick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-25 months agomessage-square5fedilink
Rick_C137@programming.dev to Selfhosted@lemmy.worldEnglish · edit-26 months agoGeoIP Database to use with FreeNginx !? [ solved ]plus-squaremessage-squaremessage-square2fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1message-squareGeoIP Database to use with FreeNginx !? [ solved ]plus-squareRick_C137@programming.dev to Selfhosted@lemmy.worldEnglish · edit-26 months agomessage-square2fedilink
Rick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-26 months agoGeoIP Database to use with FreeNginx !? [ solved ]plus-squaremessage-squaremessage-square1fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1message-squareGeoIP Database to use with FreeNginx !? [ solved ]plus-squareRick_C137@programming.dev to Linux@lemmy.mlEnglish · edit-26 months agomessage-square1fedilink
Thank you all for yours input
What finally did work
if [[ -z VARIABLE1 && -z VARIABLE2 ]]; then echo "OK" fiIf only Linux was using Python syntax that would be so much more intuitive…