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-49: Count the number of words & sentences in a text file without using ‘wc’

55.3K views on YouTube

In this tutorial you’ll learn to count the number of words and sentences in a text file by switching the input stream to the text file and then using ‘for loop’ construct to iterate over the sentences in the file.