ay to get length of the string.
The simplest one is ${#varname}, which returns the length of the valu... ng
expr match "$string" '$substring'
$substring is a regular expression.
expr "$string" : '$substring'
$substring is a regular expression.
stringZ=abcABC123ABCabc
#... 'c' (in #3 position) matches before '1'.</code>
Thisis the near equivalent of strchr() in C.
==== Sub
rs =====
==== integer comparison ====
----
-eq
is equal to
<code> if [ "$a" -eq "$b" ]</code>
----
-ne
is not equal to
<code> if [ "$a" -ne "$b" ]</code>
----
-gt
is greater than
<code> if [ "$a" -gt "$b" ]</code>
----
-ge
is greater than or equal to
<code>if [ "$a" -ge "$b