I have a csv file which contains millions of rows. Now few of the rows contains more data then column data type can accommodate. For e.g. csv file has only two rows as shown below please not ^_ is delimiter
A^_B^_C
AA^_BB^_CC
Now assume each line can accomodate only one character so line 1 row 1 is correct but line 2 is not and I want to find out all these kinds of lines.
So I thought if I get the longest lines from csv file I will be good and I tried to following but is not helping (from longest line)
wc -L file
Please help me find the largest line/column in a csv file. Another problem is I have two delimiter so cant use cut command also.