I have a code that is svr_vars. I have a directory with 300 different files. I want to loop it and to run the code on each file in the directory. The svr_vars code outputs a generic filename of svr_vars.txt. Therefore, every time the code is run, it overwrites the svr_vars.txt filename. So, it needs to be renamed after every run of the code.
1995051200_72259.txt <= what one file in the directory looks like
I want the output to be renamed from svr_vars.txt to svr.1995051200_72259.txt