I'd like to compare two strings and then another two strings. So if $version is not equal to 5 and type is not equal to dbma OR if $version is not equal to 6 and $type is not equal to dbmy
I can't quite get the syntax right.
if [[ "${version}" != "5" ]] && [[ "${type}" != "dbma" ]] || [[ "${version}" != "6" ]] && [[ "${type}" != "dbmy" ]]
then
xyz
else
abc
fi
Can someone please help?