dimanche 18 mars 2018

Multiple conditions on bash 'if' statement

i'm having trouble with if in bash. basically i'm trying to do this in bash:

if ((x='r')&&(y='s'))||((x='s')&&(y='p')) then
echo "bluh"

but i've just can't find the proper way, used square brackets, 2 square brackets, round brackets.

but it just won't work...

Aucun commentaire:

Enregistrer un commentaire