rgb192
asked on
I think the underscore is breaking the search
search all files in all folders RECURSIVELY which have the keyword 'mysql_connect'
i tried
grep -1R "mysql_connect".
and get no result
note this question is different than my other question because I think the
_
underscore
is breaking the search
i tried
grep -1R "mysql_connect".
and get no result
note this question is different than my other question because I think the
_
underscore
is breaking the search
also, using 1, where I suspect you may have wanted l could also break things
ASKER
so what command should I use to find this string
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Perhaps you meant
grep -lR mysql_connect .
grep -lR mysql_connect .
ASKER
so the problem was not the
_
it was
space before .
_
it was
space before .
ASKER
>>
There's no reason the _ should break the search,
but the lack of a space between the search string (mysql_connect) and the directory name (.) will break the search.
sorry
I didnt not understand the first answer until I clicked on 'correct answer'
I initially was confused by 'directory name'
There's no reason the _ should break the search,
but the lack of a space between the search string (mysql_connect) and the directory name (.) will break the search.
sorry
I didnt not understand the first answer until I clicked on 'correct answer'
I initially was confused by 'directory name'
but the lack of a space between the search string (mysql_connect) and the directory name (.) will break the search.