This question already has an answer here:
I have a file with words separated by ',' on lines, every line has the same number of words, say 4. So ther are in the form of:
something1,something2,something3,something4
I want to search for the line that contains on the 4th column exactly something4
, but how do i do that if there exists another line that is something like this:
something1,something2,something3,1_something4
with grep I will get both these lines, but I only want the line that has on the 4th element exactly something4
what should I do?