hzhang@dell-work ~ $ cat sample.csv abc, xyz abc,1 abc,2 abc,3,xyz hzhang@dell-work ~ $ grep abc sample.csv |grep -v "xyz$" abc,1 abc,2