When I try to grep something, I get:
09:00:02.052(0.0000<-0.0001<-0.0002)
15:04:07.225(75.8901<-78.1234<-79.4567)
16:08:11.463(100.0000<-100.0000<-100.0000)
values in () are percentage, so always lies in [0, 100]
So the input format will always be like:
HH:MM:SS.mmm(numbers1.xxxx<-numbers2.xxxx<-numbers3.xxxx)
And let's assume that the date is 20181025.
Is it possible to transform this grep result using awk/other unix command into a timeseries-like csv format:
unixtimestamp1,0.0000,0.0001,0.0002
unixtimestamp2,75.8901,78.1234,79.4567
unixtimestamp3,100.0000,100.0000,100.0000
- It is guaranteed that numbers are always with 4 digits.
Thanks!