i have written a code to find the number of alphabet 'a' in a file
my code is below
count=`cat $fname | grep -ic 'a' `
where $fname is name of a file
my file contents are:
Actually answer should be 7 but its coming as 5
In the string 'Aathira' only one 'a' is counted
How it can be rectified??