I need to run something ('awk', 'sed', etc.) that will let me know what the longest record in a file is. And I need it to ignore spaces. So, if I have a file with records that look like this (without the ticks):
'John Doe'
'Al Doe'
'Christopher Doe'
'Jill Doe'
I want the returned result to somehow let me know that the longest length record in the file is 15 bytes ('Christopher Doe'). I don't even care which record it is, I just need the longesth length. Anyone know how to do this?
'John Doe'
'Al Doe'
'Christopher Doe'
'Jill Doe'
I want the returned result to somehow let me know that the longest length record in the file is 15 bytes ('Christopher Doe'). I don't even care which record it is, I just need the longesth length. Anyone know how to do this?