How can I use the UNIX shell to count the number of times a letter appears in a text file? August 8, 2023 by Tarik grep char -o filename | wc -l