)
===== Length Operator =====
There are two way to get length of the string.
The simplest one is ${... value 6.
The other operator (${#array[*]}) has to do with array variables.
==== String Length ====
... fset[:length} is used, an `offset' that evaluates to a number less than zero counts back from the end ... de>
a=12345678
echo ${a:-4}
</code>
intending to print the last four characters of $a. The proble
==== integer comparison ====
----
-eq
is equal to
<code> if [ "$a" -eq "$b" ]</code>
----
-ne
is not equal to
<code> if [ "$a" -ne "$b" ]</code>
----
-gt
... $b" ]</code>
----
-ge
is greater than or equal to
<code>if [ "$a" -ge "$b" ]</code>
----
-lt
is l... -lt "$b" ]</code>
----
-le
is less than or equal to
<code>if [ "$a" -le "$b" ]</code>
----
<
is les