I am trying to count the number of SQL queries per second from a log file and I want to do it in real time by pipeing stdout from grep into some command. ( I am doing some performance testing )
I could write it myself, but thought for sure this would exist.
I looked at wc but didn't see an option to allow this.
I could also use it to count requests per second by piping a tail from the access log.