buzzcasper
Technical User
I don't know why I can't get this but I'm trying to do a comparison of two text strings. The first string is known as "Completed: ALTER DATABASE BACKUP CONTROLFILE TO '/fnsw/local/". The other string is being pulled from a log file and I'm just trying to compare the two. I started it many different ways: having the known string already in a file, running a "tail" of the log file and outputting it into a script generated file and then trying to compare the two files. Ideally, I would like some simple like:
IF [ string1 = "Completed: ALTER DATABASE BACKUP CONTROLFILE TO '/fnsw/local/" ]
but nothing seems to be working for me. I also tried playing with the "test" command within this but maybe I'm trying too hard. My syntax is probably incorrect somewhere but it just doesn't want to work. Anybody have any advice??
IF [ string1 = "Completed: ALTER DATABASE BACKUP CONTROLFILE TO '/fnsw/local/" ]
but nothing seems to be working for me. I also tried playing with the "test" command within this but maybe I'm trying too hard. My syntax is probably incorrect somewhere but it just doesn't want to work. Anybody have any advice??