If Statement

Learn how the if statement works in detail, along with one-liners and fragile code.

Conditional statements

We first learned of conditional statements the first time when we learned about the find utility. Then, we found out that Bash has its own logical operators AND (&&) and OR (||). Bash also has other options to make branches.

The operators if and case are used frequently when writing ...

Access this course and 1400+ top-rated courses and projects.