How to do a logical OR operation for integer comparison in shell scripting?
I am trying to do a simple condition check, but it doesn’t seem to work. If $# is equal to 0 or is greater than 1 then say hello. I have tried the following syntax with no success: if [ “$#” == 0 -o “$#” > 1 ] ; then echo “hello” fi if [ … Read more