Skip to content

Instantly share code, notes, and snippets.

@vdubyna
Created November 13, 2014 12:16
Show Gist options
  • Select an option

  • Save vdubyna/4e0c96eebf2805c464df to your computer and use it in GitHub Desktop.

Select an option

Save vdubyna/4e0c96eebf2805c464df to your computer and use it in GitHub Desktop.
count records per hour
for h in `seq -w 0 23` ; do echo -n $h" | " ; grep -c 2014-11-12T$h var/log/system.log ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment