This isn't at all easy to explain but easy to just show.
I have lines in a file such as:
100Dollars 3 IP 200Dollars 3 IP 300Dollars 4 IP
I need to grep for lines that have no '3' in the second column. I tried the following:
egrep -v '3' filename
However this does not return the third line due to having a 3 in the first part of it. There's my basic question, if that makes sense.
How do I exclude what is in the first column and only grep for whatever is in the second column?