I love this site, so i didnt know who to report this flaw in the curriculum to

it is with the grep -c version, regarding the first grep example with the fruits . the number should be as 4, not 3
thank you ^^

Hi and welcome,

I did not know the answer and out of curiosity, I tried this out and the output is 3. Upon further search, I found that the “grep -c” command returns “the number of lines” in a file that match a given pattern or regular expression."

It returns “number of lines” and not the “number of times” the pattern occurs. So 3 is the right answer.