How to grep lines having specific format.
Posted
by Nitin
on Stack Overflow
See other posts from Stack Overflow
or by Nitin
Published on 2010-05-02T09:37:04Z
Indexed on
2010/05/02
9:47 UTC
Read the original article
Hit count: 225
I have got a file with following format.
1234, 'US', 'IN',......
324, 'US', 'IN',......
...
...
53434, 'UK', 'XX', ....
...
...
253, 'IN', 'UP',....
253, 'IN', 'MH',....
Here I want to extract only those lines having 'IN' as 2nd keyword. i.e.
253, 'IN', 'UP',....
253, 'IN', 'MH',....
Can any one please tell me a command to grep it.
© Stack Overflow or respective owner