So I read the man pages on grep, and tried it out. I opened KWrite, and saved a file to my home dir containing the line 'I like hats'. Then, in bash, I entered 'grep -c hats ~' -- and got 0 results. I tried different arguments, putting the phrase in quotes, all sorts of things. Nothing.
Obviously, I've completely misunderstood what grep is supposed to do. Can anyone enlighten me?