in reply to Re^4: searching two pattern sequentially from one file
in thread searching two pattern sequentially from one file

Hi mrityunjaynath,

Due to lack of time I have only briefly skimmed your code - and I think that many other readers would also appreciate it if you could reduce the amount of code needed to reproduce the problem, as the pages I linked to earlier explain. At first glance, it seems that the block of code inside the ##### comment markers is mostly independent of the rest of the code.

Does your script ever output "into the second loop set_global_assignment -name LAST_QUARTUS_VERSION 11.1"?

If not, then my guess is that you have more than one file with the extension .qsf in the path $target_dirsynth1 and the glob is picking the wrong one.

Regards,
-- Hauke D