Created
August 14, 2014 16:28
-
-
Save r3b/7cb34a19c0008e4f36d3 to your computer and use it in GitHub Desktop.
Various file stats from the command line
This file contains 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 > x ) { x = length } }END{ print x }' $1 |
This file contains 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 '(NR==1||length<x){x=length} END {print x}' $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment