use grep to count the number of times a word got repeated in a file use grep to count the number of times a word got repeated in a file shell shell