Hi Perl Gurus,
I have a file with the following data.
Test1 - Execution1 - 00:00:00.52
Test2 - Execution1 - 00:00:00.01
Test3 - Execution1 - 00:00:00.67
Test4 - Execution1 - 00:01:01.80
Test5 - Execution1 - 00:00:00.31
Test6 - Execution1 - 00:00:00.94
Test7 - Execution1 - 00:00:00.02
Test8 - Execution1 - 00:00:00.07
Test1 - Execution2 - 00:00:00.50
Test2 - Execution2 - 00:00:00.00
Test3 - Execution2 - 00:00:00.58
Test4 - Execution2 - 00:00:59.39
Test5 - Execution2 - 00:00:00.17
Test6 - Execution2 - 00:00:00.74
Test7 - Execution2 - 00:00:00.02
Test8 - Execution2 - 00:00:00.06
I need to format it as follows.
Test Execution1 Execution2
----------------------------------
Test1 00:00:00.52 00:00:00.50
Test2 00:00:00.01 00:00:00.00
Test3 00:00:00.67 00:00:00.58
Test4 00:01:01.80 00:00:59.39
Test5 00:00:00.31 00:00:00.17
Test6 00:00:00.94 00:00:00.74
Test7 00:00:00.02 00:00:00.02
Test8 00:00:00.07 00:00:00.06
I have written one in shell script and is working but thought perl will be a good option. Any help is really appreciated.
Thanks,
dbadmin
I have a file with the following data.
Test1 - Execution1 - 00:00:00.52
Test2 - Execution1 - 00:00:00.01
Test3 - Execution1 - 00:00:00.67
Test4 - Execution1 - 00:01:01.80
Test5 - Execution1 - 00:00:00.31
Test6 - Execution1 - 00:00:00.94
Test7 - Execution1 - 00:00:00.02
Test8 - Execution1 - 00:00:00.07
Test1 - Execution2 - 00:00:00.50
Test2 - Execution2 - 00:00:00.00
Test3 - Execution2 - 00:00:00.58
Test4 - Execution2 - 00:00:59.39
Test5 - Execution2 - 00:00:00.17
Test6 - Execution2 - 00:00:00.74
Test7 - Execution2 - 00:00:00.02
Test8 - Execution2 - 00:00:00.06
I need to format it as follows.
Test Execution1 Execution2
----------------------------------
Test1 00:00:00.52 00:00:00.50
Test2 00:00:00.01 00:00:00.00
Test3 00:00:00.67 00:00:00.58
Test4 00:01:01.80 00:00:59.39
Test5 00:00:00.31 00:00:00.17
Test6 00:00:00.94 00:00:00.74
Test7 00:00:00.02 00:00:00.02
Test8 00:00:00.07 00:00:00.06
I have written one in shell script and is working but thought perl will be a good option. Any help is really appreciated.
Thanks,
dbadmin