I have text file with multiple line of different jobs jobs status .last run date..etc has been given as below
Jobname=FC;lastdate=12032015;lastresult=0
I need to write out the jobname and lastresult status with "success" for 0 and "fail" for other cases.