How to count number of times a string occurs in a linux text file By admin on October 9, 2015 in Uncategorized grep -c ‘searchterm’ myfile