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-35: Count The Number of Characters in User’s Input in Your Script

55.5K views on YouTube

In this tutorial you’ll learn a method to check if a single character has been provided as input to a variable in a shell script or more than one characters have been provided. We will use this method to build the script in the next tutorial.

Tutorial on ‘wc’: http://www.youtube.com/watch?v=Ex-mzjPwrmo