in reply to Re: Count word in my dir
in thread Count word in my dir

This wont work, if the word appears two times in a single line...
A more robust solution would be
grep -h -i WORDHERE * | perl -le 'while(<>){$i+=s/\bWORDHERE\b//ig} pr +int $i'


T I M T O W T D I