the man page offers no examples.
Here I'm going to show how to use some of these features to do the sorts of simple string manipulations that ... ng you might just use yourself -- if you remember to quote it right. It's easy enough to add check for the number of arguments and to ensure that there is at least one file that exist... of pipes and command substitutions one might have to employ to pass data to the various external commands and return the resu... ogram Testing, for details).
--null
Signals to the script that it has to use the null character to separate values, instead of the common newline. T
==== integer comparison ====
----
-eq
is equal to
<code> if [ "$a" -eq "$b" ]</code>
----
-ne
is not equal to
<code> if [ "$a" -ne "$b" ]</code>
----
-gt
... $b" ]</code>
----
-ge
is greater than or equal to
<code>if [ "$a" -ge "$b" ]</code>
----
-lt
is l... -lt "$b" ]</code>
----
-le
is less than or equal to
<code>if [ "$a" -le "$b" ]</code>
----
<
is les