I have a file that contains start and end times for processes:
Start BatPrcsDrvr.pl CAEXPENS 1 2009-05-05 01:05:52
End BatPrcsDrvr.pl CAEXPENS 1 Successfully 2009-05-05 01:05:53
Start BatPrtnDrop.pl CAEXPENS 1 2009-05-05 01:06:12
End BatPrtnDrop.pl CAEXPENS 1 Successfully 2009-05-05 01:15:29
Start BatBackup.pl CAEXPENS 1 2009-05-05 01:21:11
End BatBackup.pl CAEXPENS 1 Successfully 2009-05-05 01:25:57
I want to take the time stamp on the End line and compare it to the time stamp on the start line to get the elapsed time. I am working on this now but not getting very far so any tips would be appreciated. I will repost if I figure it out first.