0

I have a .csv file with a 236 columns that are all text based.

How do I find the row with largest size in bytes?

If I have a csv file in the following format:

   x,        y,       z
1  'hello', 'world', 
2  'quick', 'brown', 'fox'
3  'chick', 'fil',   'a'

How can I scan through this file to see which row has the largest size?

Expected result:

3 Size - 'x' bytes

Thank you.

j riot
  • 544
  • 3
  • 6
  • 16
  • This is more suited to another Stack Exchange site. Here's an answer from [Unix](http://unix.stackexchange.com): http://unix.stackexchange.com/questions/24509/how-to-print-the-longest-line-in-a-file – Jim Stewart Nov 17 '16 at 19:38
  • Or if you just need the length: http://stackoverflow.com/questions/1655372/longest-line-in-a-file – Jim Stewart Nov 17 '16 at 19:39
  • Or I'm misinterpreting your question...do you want the size of a single column within the row? If those links above don't help you, please edit your question to clarify, with example input and output data (please limit it to a minimum number of lines to explain). – Jim Stewart Nov 17 '16 at 19:40
  • I have added additional detail. – j riot Nov 17 '16 at 19:53

0 Answers0