Hi , I have been given some data after doing greps on Application log files which is
HTML Code:
TAX_PROD_ARC_JAVA.log.20080424031428:Apr 24 00:11:37 2008: [242] Beginning Taxingfor rec TAX_1_2_3
TAX_PROD_ARC_JAVA.log.20080424031428:Apr 24 00:12:06 2008: [119] Beginning Taxingfor rec TAX_1_2_5
TAX_PROD_ARC_JAVA.log.20080424031428:Apr 24 00:13:15 2008: [120] Beginning Taxingfor rec TAX_1_2_9
TAX_PROD_ARC_JAVA.log.20080424031428:Apr 24 00:16:41 2008: [259] Beginning Taxingfor rec TAX_1_2_15
TAX_PROD_ARC_JAVA.log.20080424031428:Apr 24 00:46:02 2008: [220] Beginning Taxingfor rec TAX_1_2_6
TAX_PROD_ARC_JAVA.log.20080424031428:Apr 24 01:07:18 2008: [249] Beginning Taxingfor rec TAX_1_2_0
TAX_PROD_ARC_JAVA.log.20080424101535:Apr 24 04:17:24 2008: [215] Beginning Taxingfor rec TAX_1_2_1
TAX_PROD_ARC_JAVA.log.20080424101535:Apr 24 04:17:27 2008: [216] Beginning Taxingfor rec TAX_1_2_2
TAX_PROD_ARC_JAVA.log.20080424101535:Apr 24 04:18:31 2008: [263] Beginning Taxingfor rec TAX_1_2_99
TAX_PROD_ARC_JAVA.log.20080424101535:Apr 24 04:18:32 2008: [223] Beginning Taxingfor rec TAX_1_2_45
Where the TAX_PROD_ARC_JAVA.log.20080424031428 is the log file with datetime stamp, What i want is to get the tax no i.e TAX_1_2_3 (as in first line)
and then open the file TAX_PROD_ARC_JAVA.log.20080424031428 which will then have a line "Apr 24 01:11:37 2008: [242] [TAX_1_2_3 ] complete" and print
the input and output lines together without the Log file bit i.e
Apr 24 00:11:37 2008: [242] Beginning Taxingfor rec TAX_1_2_3
Apr 24 01:11:37 2008: [242] [TAX_1_2_3 ] complete
I need to get the start time and end time. I tried writing but it doesn to work , wondering if i can do it with awk or perl