Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 1.09 KB

File metadata and controls

19 lines (18 loc) · 1.09 KB

/////integer comparision /////*/ -eq -is equal to if [ "$a" -eq "$b" ] -ne -is not equal to if [ "$a" -ne "$b" ] -gt -is greater than if [ "$a" -gt "$b" ] -ge -is gretater than or equal to if [ "$a" -ge "$b" ] -lt -is less than if [ "$a" -lt "$b" ] -le -is less than or equal to if [ "$a" -le "$b" ] < is less than if (("$a" < "$b")) <= is less than or equal to if (("$a" <= "$b"))

      is greater than                    if (("$a" > "$b"))

= is greater than or equal to if (("$a" >= "$b"))

/////string comparision /////*/ = is equal to if ["$a" = "$b"] == is equal to if ["$a" == "$b"] != is not equal to if ["$a" != "$b"] < is less than if ["$a" < "$b"]

      is gretater than            if ["$a" > "$b"]

-z string is null, that is has zero lenght