ivalent of strchr() in C.
==== Substr ====
Shell uses zero-based indexing. When substring expansion of the form ${param:offset[:length} is used, an `offset' that evaluates to a number less th... aram.
When a negative `offset' begins with a minus sign, however, unexpected things can happen. Con... ram is unset or null, and $param otherwise.
To use negative offsets that begin with a minus sign, s
<code>if [ "$a" != "$b" ]</code>
This operator uses pattern matching within a [[ ... ]] construct.
... at the string be quoted within the test brackets. Using an unquoted string with ! -z, or even just the unquoted string alone within test brackets (see Exa... g wax, not to mention cabbages and kings . . .
# Using if [ ... ]
# If a string has not been initi