Hi I have a csv file which is below
A,5
B,6
C,10
D,7
I want the values who's second column is greater than 7
say
C,10
D,7
Help me please...
Thanks,
Maruth
Hi I have a csv file which is below
A,5
B,6
C,10
D,7
I want the values who's second column is greater than 7
say
C,10
D,7
Help me please...
Thanks,
Maruth
Something like this?
awk -F, '$2>=7' file
greater than or equal according to your output I guess:
# awk -F"," '$2>=7' infile
C,10
D,7
HTH
Thanks a lot... It worked like a charm...