I have a test file like below. (but the actual file has 1000+ lines and many columns)
apple,2
mango,5
coconut,10
I want to print this file as below.
I have apple and the count is 2
I have mango and the count is 5
I have coconut and the count is 10
I tried while read line
with awk -F ',' '{print $1}'
, but im not getting the actual output.
Can someone help me on this?