开发者

Unix Grep command

开发者 https://www.devze.com 2023-01-06 18:24 出处:网络
I have to search fro开发者_如何学Cm codebase of lines having following pattern: \"get_token , get_token\"

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

精彩评论

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