2
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?
You say "2nd column" then you say "third column"; which is it? – Hello71 – 2011-03-23T21:41:52.820
2nd column. Fixed. – roger34 – 2011-03-23T21:50:37.590
This question has nothing to do with bash. – Scott – 2014-06-16T15:57:29.660