I have to search fro开发者_如何学Cm codebase of lines having following pattern:
"get_token , get_token"
For example the below line 'type' should be listed:
fn1(string.get_token(), string1.get_token());
grep -R ".*get_token(),.*get_token()" *
egrep '(get_token).*\1'
Modify as needed.
grep "get_token.*,.*get_token" *
grep -E -n 'get_token.*?get_token' *
| grep "get_token.*,.*get_token"
精彩评论