Hello All,
I am working on a script where I need to fetch the value from a log file and log file creates with different name but few thing are common
DEV_INFOMGT161_MULTI_PTC_BLD01.Stage_All_to_stp2perf1.042312114644.log
STP_12_02_01_00_RC01.Stage_stp-domain_to_stp2perf2.042312041739.log
STPPRODUCTS_01_01_PRE_BLD06.Stage_tag_to_stp2qa1.041912201909.log
First I need to make the name of file for example
${Source Tag}.Stage[Please help me to make the name of the file above]
and then I need to fetch the few things like from the below format
Build Complete. Values are:
Today's Date:..............04/23/12
Build Type:................Stage
Build Context:.............intg
Source Tag:................DEV_INFOMGT161_MULTI_PTC_BLD01
Destination Tag:...........NotApplicable
Destination Environment:...stp2perf1
STP Application Name:......All
Start Time:................11:46:44 GMT
End Time:..................11:53:43 GMT
Elapsed Time:..............00:06:59
Soa Version:...............08_07_00
Override Properties File:.."/projects/stp/home/stpbuild/override.files/DEV_INFOMGT161_MULTI_PTC"
Java Version:..............jdk1.6.0_13
Tomcat Version:............/opt/apache-tomcat-7.0.19
Result:....................SUCCESSFUL
Log File:
DEV_INFOMGT161_MULTI_PTC_BLD01.Stage_All_to_stp2perf1.042312114644.log
These below three thing which I want to fetch from the above log file
Build Type
Source Tag
Result
Thanks