e as a character string. For example, if filename has the value fred.c, then ${#filename} would have the value 6.
The other operator (${#array[*]}) has to do with array variables.
==== String Length ==... f $a. The problem is that ${param:-word} already has a well-defined meaning: expand to word if the exp... By Jim Dennis, jimd@starshine.org
The bash shell has many features that are sufficiently obscure you a
rison operator.
----
-z
string is null, that is, has zero length
<code>
String='' # Zero-length ("nu... kings . . .
# Using if [ ... ]
# If a string has not been initialized, it has no defined value.
# This state is called "null" (not the same as zero!).
if [ -n $string1 ] # string1 has not been declared or initialized.
then
echo "St