I would like to have the logical not for the following condition expression in bash, how can I do this?
if [[ $var==2 || $var==30 || $var==50 ]] ; then
do something
fi
how can I prepend the logical not directly in the above expression, it's very tedious to change it again into things like this:
if [[ $var!=2 && $var!=30 && $var==50 ]] ; then
do something
fi
thanks for any hints!