I want to search "C" in the grades column inside the file "input.csv":
roll,name,total,rank,grade 001,A B,78,23,C 003,F YZ,100,1,*
and what I'm trying is:
cut -d"," -f4 input.csv | grep "C"
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community