ins with a minus sign, however, unexpected things can happen. Consider
<code>
a=12345678
echo ${a:... # ABC
===== Default =====
These operators can be used in a variety of ways. A good example wou... ILE=${1-"infile"}
export OUTFILE=${2-"outfile"}
cat $INFILE $OUTFILE
Hopefully, this gives you somet... key and operated from the right.
These operators can be used to do a variety of things. For example,
ng is null.
</code>
----
-n
string is not null.
Caution
The -n test requires that the string be qu...
<code>
#!/bin/bash
a=4
b=5
# Here "a" and "b" can be treated either as integers or strings.
# The... hose value consists of all-integer characters.
# Caution advised, however.
echo
if [ "$a" -ne "$b" ... + but not strings and sealing wax, not to mention cabbages and kings . . .
# Using if [ ... ]
# If