NAME [[ - test a logical expression SYNOPSIS [[ ]] DESCRIPTION The expression is evaluated using logical operators, and returns a boolean value indicating whether the expression was true or false. The set of operators are as follows: -a - return TRUE if file exists -e - same as -a -d - TRUE if arg is a directory -f - TRUE if file is a regular file -x - TRUE if file is executable -r - TRUE if file is readable by user -w - TRUE if file is writable by user -z - TRUE if string is 0 length -n - TRUE if string is not 0 length <= - TRUE if first is lexographically less than second == - TRUE if regex matches ALL of string != - TRUE if regex does not match string =~ - TRUE if regex matches anything in string vars $v0-$v9 are set to contain matches in parens && - TRUE if both expressions are true || - TRUE if either expression is true ++ - postincrement -- - postdecrement * - TRUE if multiplication result is non-zero / - TRUE if division is non-zero, and denominator is non-zero + - TRUE if sum is non-zero - - TRUE if difference is non-zero -lt - TRUE if first numeric expr is < second -le - TRUE if first numeric expr is <= second -eq - TRUE if numeric expressions are equal -ge - TRUE if first numeric expr is >= second -gt - TRUE if first numeric expr is > second