Let’s take a deep dive in the Unix shell’s if statement.
We’ll cover syntax, negation, the test command, the [ command,
bracket-bracket, math and numerical comparisons,
and various rules for regular expressions.