how to get occurence of a word in a file in liux code example
Example 1: count occurrences of word in unix bash
$ grep -o -i needs inspire.txt | wc -l
Example 2: count occurrences of word in file linux
grep -wc "your_text" FileName
$ grep -o -i needs inspire.txt | wc -l
grep -wc "your_text" FileName