June 2017
Beginner
502 pages
11h 26m
English
As we have seen in some of our previous examples, we used the shell built-in test to perform some checks on variables and files along with the conditional if...then so that we could make our script react to conditions: if the test is successful it returns 0, if it is not, 1, and these are the values that triggered our reactions so far.
We can use a couple of different notations to execute a test and we already saw them:
[expression]
or
[[expression]]
We already spoke about the differences between the two, but let us quickly recap them before proceeding:
Read now
Unlock full access