title: How to find the longest column(hence line) in csv file in linux?
body: <p>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</p>
  
  <pre><code>A^_B^_C
  AA^_BB^_CC
  </code></pre>
  
  <p>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.</p>
  
  <p>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 <a href="https://stackoverflow.com/questions/1655372/longest-line-in-a-file">longest line</a>)</p>
  
  <pre><code>wc -L file
  </code></pre>
  
  <p>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. </p>