dt is a command line tool to aid transforming durations (typically Golang printed durations) into a normalized format that can be used for further processing.
go install github.com/jabbors/[email protected]
Example use case
Say you have to following input in a file named
sample.dat and would like to know the
Then you execute
$ cat sample.dat | dt | datamash max 1 min 1 median 13153.943706 1.782821 3.6661875