First page Back Continue Last page Graphics
bash Expressions
There are two forms of logical expressions, the “old kind” (Bourne shell compatible) and the new kind.
Bourne shell (sh) compatible
[ $a -eq $b ]
[-e "filename" ]
(( $a == $b )) # numeric
[[ -e "filename" ]] # string
The (( ... )) form can also be used in place of the let command.
Hey, what's that -e thingie?