Created
January 14, 2015 14:47
-
-
Save dmgig/703a22b96c3acc6ca416 to your computer and use it in GitHub Desktop.
awk: count matching rows in log file
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 '/Sep 07/ {total += 1} END {print "total requests = " total}' /var/log/requests.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment