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
#... (in #3 position) matches before '1'.</code>
This is the near equivalent of strchr() in C.
==== Substr
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