(http://www.softpanorama.org/Scripting/Shellorama/Reference/string_operations_in_shell.shtml))
===== ... e string.
The simplest one is ${#varname}, which returns the length of the value of the variable as a... pr match "$string" '$substring'
$substring is a regular expression.
expr "$string" : '$substring'
$substring is a regular expression.
stringZ=abcABC123ABCabc
#
--
-n
string is not null.
Caution
The -n test requires that the string be quoted within the test b... string1\" is null."
fi # Wrong result.
# Shows $string1 as not null, although it wa... ll."
fi # Again, gives correct result.
# Still, it is better to quote it ("$string1... # Not quoting "$string1" now gives wrong result!
exit 0
</code>
=== Example 7-7. zmore =