when I cat the csv file for head | wc -l it gives me answer as 1 since there are comma in between , I wanted it to eliminate the comma and give me the count as 7
Eg :
cat file1.csv
row1,row2,row3,row4,row5,row6,row7
cat file1.csv | head -1 | wc -l
1
But I wanted the answer to be 7 as it should give me counts of the rows