June 2017
Beginner
502 pages
11h 26m
English
Let's take one of our previous examples and examine it in more detail:
#!/bin/bash echo "Hello user, please give me a number between 10 and 20: "read user_inputif [ ${user_input} -ge 10 ] && [ ${user_input} -le 20 ]thenecho "Great! The number ${user_input} is what we were looking for!"elseecho "The number ${user_input} is not what we are looking for..."fi
As an exercise to ease its comprehension, let's try to write it in natural language:
Read now
Unlock full access