hello,
i'm trying to break up a unix file with the following sample data into three columns:
16:42:33.02
16:42:36.37
16:42:46.50
16:42:49.83
16:43:00.08
16:43:03.79
the original file contained other data, but i was mainly interested with these times...so i initially passed through an array the original file and wrote regex to match the strings with the times and finally produced the data from above...i ultimately need to do the following:
start finish difference
16:42:33.02 16:42:36.37 (diff between start and finish)
16:42:46.50 16:42:49.83
16:43:00.08 16:43:03.79
can i write regex for this or do i need to do a print format...can i also calculate the difference between the start and finish times?
any suggestions will be greatly appreciated...
ty,
q.
i'm trying to break up a unix file with the following sample data into three columns:
16:42:33.02
16:42:36.37
16:42:46.50
16:42:49.83
16:43:00.08
16:43:03.79
the original file contained other data, but i was mainly interested with these times...so i initially passed through an array the original file and wrote regex to match the strings with the times and finally produced the data from above...i ultimately need to do the following:
start finish difference
16:42:33.02 16:42:36.37 (diff between start and finish)
16:42:46.50 16:42:49.83
16:43:00.08 16:43:03.79
can i write regex for this or do i need to do a print format...can i also calculate the difference between the start and finish times?
any suggestions will be greatly appreciated...
ty,
q.