dt

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.

Installation

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 max, min and median value

3.765963ms1.782821ms2.35635ms3.14281545s47.767401ms3.566412ms2.012246ms35.296362ms2.46694ms3.153943706s

Then you execute

$ cat sample.dat | dt | datamash max 1 min 1 median 13153.943706 1.782821 3.6661875

GitHub

View Github