I have a large number of do-files that I would like to run by systematically changing parts of the code.

Changes I want to make:

Code:
keep [varlist]
changed to

Code:
keep [other varlist]
as well as

Code:
save file_name
changed to

Code:
save other_file_name
Ideally, I would like to find a solution such that I can loop over all do-files, with the do-files being executed with the aforementioned changes

Code:
forvalues i =1/100 {

[run with the mentioned changes] do_file_`i'

}