Can someone help with the best way to do this please? I'm looking for the simplest approach with the least amount of lines.
What I have is 3 variables each with their own numeric content. In an ideal world I'd have an if statement along the lines of:
if [[ $variable1 = 1 ]] or if [[ $variable2 = 4 ]] or if [[ $variable3 = 7 ]]
then
take action
fi
Remembering I want to keep this as simple as possible for other people to be able to follow, any suggestions?
Thanks in advance.
What I have is 3 variables each with their own numeric content. In an ideal world I'd have an if statement along the lines of:
if [[ $variable1 = 1 ]] or if [[ $variable2 = 4 ]] or if [[ $variable3 = 7 ]]
then
take action
fi
Remembering I want to keep this as simple as possible for other people to be able to follow, any suggestions?
Thanks in advance.