tags:

views:

65

answers:

5

I have to search from 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());

Thanks in advance

A: 
grep "get_token.*,.*get_token" *
agsamek
A: 
grep -R ".*get_token(),.*get_token()" *
pakore
A: 
grep -E -n 'get_token.*?get_token' *
Piskvor
+1  A: 
egrep '(get_token).*\1'

Modify as needed.

Alok
A: 

| grep "get_token.*,.*get_token"

gyrous