BASH scripting lesson 4 using case statements



BASH scripting lesson 4 using case statements

BASH scripting lesson 4 using case statements

More videos like this online at http://www.theurbanpenguin.com
If we need an IF statement with many elif elements then it may well be better written as a CASE statement. With the BASH CASE statement we read a value once and test it multiple times. Are final CASE ELSE test would read *), saying well if it is anything else then we will do the following action. Having shown a sample CASE statement we move into a practical script looking at the available disk space and carries out diffent tasks based on the available percentage of disk space

Comments are closed.