Reputation: 1445
I want to search for some string is all subfolders directly in files
I need to find out string:
DEBUG ('[S:B:H] project=', $project->name, '<<<<<<<<<<<<<');
I used to use grep -lir 'some text' *
but I suppose it isn't working like that.
Upvotes: 2
Views: 297
Reputation: 1155
this one works ::
grep -lier 'DEBUG ('\''\[S:B:H] project='\'', $project->name, '\''<<<<<<<<<<<<<'\'');' <testfile>
Upvotes: 1