Skip to content

Instantly share code, notes, and snippets.

@tomhat
Created February 2, 2017 17:24
Show Gist options
  • Save tomhat/b3bad7f22060c84c8298728864f8ef34 to your computer and use it in GitHub Desktop.
Save tomhat/b3bad7f22060c84c8298728864f8ef34 to your computer and use it in GitHub Desktop.
Count send mail num per Hourly (one liner)
for i in 16 17 18 19 20 21 22; do echo ${i}:`cat ~/temp/maillog.20170203.csv |grep "^2016/02/01 ${i}:"|wc -l`; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment