next topic    back to Rev 1 index

Topic 3

Main operations used in Bash scripting language.

Arithmetic Operations: These operators are used for performing mathematical calculations on numerical values (+, -, *, /, %)

String Operations: These operators are used for comparing String values (==, !=, -z)

Logical Operations: These operators are used for testing multiple conditions on values stored in variables (&&, ||, !)

Relational Operations: These operators are used for comparing numerical values (-eq, -ne, -gt, -lt, -ge, -le)

File Operations: These operators are used for testing properties associated with files (-d, -e, -f, -L, -r, -w, -x, -s)


next topic     back to Rev 1 index