t and to play with until the next article. If you're interested in more hints about bash (or other stuff I've written abo... t and to play with until the next article. If you're interested in more hints about bash (or other stuff I've written abo... ming task.
If we used #*/ instead of ##*/, the expression would have the incorrect value dave/pete/fred/bob, because the shortest instance of "anything ... 1), does essentially the opposite of basename: it returns the directory prefix only. It is equivalent to the Korn shell expre
heses)
<code>(("$a" <= "$b"))</code>
----
>
is greater than (within double parentheses)
<code>(("$a" > "$b"))</code>
----
//>=//
is greater than or equal to (within double parentheses)
<code>(("$a" >= "$b"))</code>
==== stri... --
-n
string is not null.
Caution
The -n test requires that the string be quoted within the test bracke... omparisons ===
<code>
#!/bin/bash
a=4
b=5
# Here "a" and "b" can be treated either as integers or strings.
# There is so