Grep count all occurrences found Post author By anthony Post date March 2, 2015 Categories In Linux No Comments on Grep count all occurrences found You can use Grep to count all occurrences of a string with the following cat * | grep -c [search] .