Compare Strings
Posted: 18 Jan 2009 18:26
Hello. I need some help doing a bat file
The problem is this, i want to check if a log generated by TSM when finishes the backup everithyng is ok. The only thing i need to compare is this 2 lines
01/12/2009 09:24:53 Total SQL backups selected: 6
01/12/2009 09:24:53 Total SQL backups attempted: 6
01/12/2009 09:24:53 Total SQL backups completed: 6
01/12/2009 09:24:53 Total SQL backups excluded: 0
01/12/2009 09:24:53 Total SQL backups inactivated: 5
and the number on the end od the line ( in this case is 6 ). Is it's not equal then the bat file should return error. My problem is that i already use the FINDSTR to check both lines but i sees the line from start to the end, doesn't break before the number 6.
Is there a way to check these 2 lines and compare them ( should be only tne numbers because the lines are diferent from one another ).
Regards
osramos
The problem is this, i want to check if a log generated by TSM when finishes the backup everithyng is ok. The only thing i need to compare is this 2 lines
01/12/2009 09:24:53 Total SQL backups selected: 6
01/12/2009 09:24:53 Total SQL backups attempted: 6
01/12/2009 09:24:53 Total SQL backups completed: 6
01/12/2009 09:24:53 Total SQL backups excluded: 0
01/12/2009 09:24:53 Total SQL backups inactivated: 5
and the number on the end od the line ( in this case is 6 ). Is it's not equal then the bat file should return error. My problem is that i already use the FINDSTR to check both lines but i sees the line from start to the end, doesn't break before the number 6.
Is there a way to check these 2 lines and compare them ( should be only tne numbers because the lines are diferent from one another ).
Regards
osramos