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.