I am trying to get lines count of csv file using wc
command
wc -l test.csv
But, this command giving me incorrect count since one the column have multiple rows in csv file.
test.csv format:
column1 column2 column3
hi hello hi
hello
I am busy right
now
for above lines , wc
giving me count 4 which actually have 2 rows. can we ignore if column have multiple rows using wc
command? I have googled a lot on this but none of them given me a clue.