export $foo="this is a test" echo ${foo%%t*is}
NOTE
While the # and % identifiers may not seem obviou... essage is given, print parameter null or not set. Note: In a non-interactive shell, this will abort the ... ot set bash: baz: parameter null or not set
== NOTE ==
The colon (:) in the above operators can be o... .tar.gz which will be stripped off of the output. Note that basename and dirname don't verify that these
" == "$b" ]</code>
This is a synonym for =.
Note
The == comparison operator behaves differently ... [[ "$a" < "$b" ]]
if [ "$a" \< "$b" ]
</code>
Note that the "<" needs to be escaped within a [ ] con... [ "$a" > "$b" ]]
if [ "$a" \> "$b" ]
</code>
Note that the ">" needs to be escaped within a [ ] con