string.
The simplest one is ${#varname}, which returns the length of the value of the variable as a cha...
${foo:-bar} If $foo exists and is not null, return $foo. If it doesn't exist or is null, return bar. export foo=""
echo ${foo:-one}
one
echo $foo
${foo:=bar} If $foo exists and is not null, return $foo. If it doesn't exist or is null, set $foo to
# Error message to stderr.
exit $E_NOARGS
# Returns 65 as exit status of script (error code).
fi
... bstitute 'less' if desired.
exit $? # Script returns exit status of pipe.
# Actually "exit $?" is unnecessary, as the script will, in any case,
#+ return the exit status of the last command executed.
</c... comparison ====
-a
logical and
exp1 -a exp2 returns true if both exp1 and exp2 are true.
----
-o
lo