I want to display all file names conataining the string CHAR * getenv where getenv is a function.
I am using this query
find . -type f -exec grep -l "CHAR * getenv" {} \;
But it is not giving the desired output. It is displaying file names with string CHAR getenv but not CHAR * getenv.
or
You need to escape the * as it means 0 or more of the proceeding char (in this case the space)