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.
Methods of sending web-generated config files to servers and restarting services
1:Linux / Ubuntu command similar to Windows cmd “start”?
grep -E ^[^,]*,\ \'IN\',.+\$ FILENAME. PHP: Can pcntl_alarm() and socket_select() peacefully exist in the same thread? That should did the trick!. how to see contents of a.out file?How to capture any key in X?how to detect lines of code with regex in VIM
2:On linux, how to check if port is in listen state without trying to connect
This works:. Invalid argument in sendfile() with two regular files
egrep "^[0-9]+, 'IN'"