≡ Menu

Linux Bash if

Bash conditional statements perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false. These statements are used to execute different parts of your shell program depending on whether certain conditions are true. The ability to branch makes shell scripts powerful. In Bash, we have the following conditional statements: [...]

{ 20 comments }