count how many occurences a wordd in txt file grep code example Example: count occurrences of word in file linux grep -wc "your_text" FileName