Conditional Expressions

suggest change



The [[ … ]] syntax surrounds bash built-in conditional expressions. Note that spaces are required on either side of the brackets.

Conditional expressions can use unary and binary operators to test properties of strings, integers and files. They can also use the logical operators &&, || and \!.

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents