Chapter 7. Tests

Table of Contents

1. Test Constructs
2. File test operators
3. Other Comparison Operators
4. Nested if/then Condition Tests
5. Testing Your Knowledge of Tests

Every reasonably complete programming language can test for a condition, then act according to the result of the test. Bash has the test command, various bracket and parenthesis operators, and the if/then construct.