Linux – Shell Script Count Vowels from file

First, Create a file with named vowels.txt and write some lines which have some vowels (a,e,i,o,u). Second, Create another file with name countvowels.txt in same directory and paste below code:

Third, Open your Terminal (Putty) run your shell script :

Now, You will be able to count vowels in your file easily.

Read More