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-22: Count The Number of Command Line Arguments Using $#

86.8K views on YouTube

In this tutorial you’ll learn to find the number of positional parameters set either through the ‘set’ command or through the command line arguments, using system variable $#.