开发者

Unix Grep command

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"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜