Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A small perl script to sum the "b" values for each distinct "a" key in a file

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

    cat xy.csv | sum-distinct 

I use this script when counting the response times of a web service
per minute. Often I take the access logs, sed/awk/cut the time of
day and the milliseconds so that my "x" is the HH:MM and the "Y" is
the duration. When done, I have the total duration per minute 
(sorted lexically).

It's perl as I often need to bring this to new servers which often
are "bare bones".

Something went wrong with that request. Please try again.