Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Shell Scripting Tutorial-37: The ‘case’ Statement

59.3K views on YouTube

In this tutorial you’ll learn to use the ‘case’ statement to make decisions. ‘case’ can sometimes be a better option than the other selection statements such as ‘if-else’, particularly when the input or decision variable in the script can take any value from a large range of values.