Sunday, 2 August 2015

Find the maximum length of a line in a Unix file


awk ' { if ( length > L ) { L=length} }END{ print L}' <Filename>

No comments:

Post a Comment