First page Back Continue Last page Graphics
bash String Operators
There is also ${#variable}, which returns the length of the string in variable.
It can also be used to determine the number of active elements in an array: ${#array[*]}.
For $* or $@, use $# for the number of positional parameters.
The array subscripts * and @ are subtly different:
* elements in double quotes form a single token
( i.e. "a b c d" )
@ elements in double quotes form a list of tokens ( i.e. "a" "b" "c" "d" )