I am trying to find ".eml" inside files but I am getting all sort of text which ends with the "eml" or present with "eml" in the texts.
How can I search the particular ".eml" text present on the files.
$ grep -rsin "*.eml" --exclude-dir=cache src/
In your pattern
.eml will match any caracter
. followed by
eml. You must escape the dot :
grep -rsin "\.eml" --exclude-dir=cache src/