Created
March 23, 2017 09:28
-
-
Save smirn0v/5f5c9bfd3d75828c707946da8f9f189c to your computer and use it in GitHub Desktop.
Longest line in file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk '{ if (length($0) > max) {max = length($0); maxline = $0} } END { print maxline }' FILENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment