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 [ "$#" == 0 ] || [ "$#" > 1 ] ; then
echo "hello"
fi