I've to extract the number of words using each letter of the alphabet from A to Z. The script that i've to create create take as parameter the name of the dictionary file to analyze and will be used like this ./langstat.sh dico.txt
I tried few things like this :
#!/bin/bash cat ~/dico.txt | grep -o A | wc -l
The problem is that it gives me the number of A into all the file, but I want to know only the number of word having a A into.
Could you give me a hand please?