/ Linux Reviews / Beginners: Learn Linux / Bash Guide for Beginners - en


7.3. Summary

In this chapter we learned how to build conditions into our scripts so that different actions can be undertaken upon success or failure of a command. The actions can be determined using the if statement. This allows you to perform arithmetic and string comparisons, and testing of exit code, input and files needed by the script. Difficult definitions of conditions can best be put in a case statement.


/ Linux Reviews / Beginners: Learn Linux / Bash Guide for Beginners


Meet new people

Adult Dating