Let me give an example:
$ echo Hello > file1
$ echo Hello > file2
$ echo Hello > .file3
$ grep Hello * 2>/dev/null
file1:Hello
file2:Hello
Here you can see the grep ignored .file3 which is starting from .
Expected result:
$ grep Hello * 2>/dev/null
.file3:Hello
file1:Hello
file2:Hello
In case of ls, there is an argument -a to tell do not ignore entries starting with . but I can't find any feature for grep
So, Is there anyway to tell grep do not ignore entries starting with .? or why grep ignores them?