Skip to content

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

Notifications You must be signed in to change notification settings

endafarrell/sum-distinct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Usage:
    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".

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published