I'm trying to automate a process, but am running into a few problems.
I have a program that I am running with the following command:
where I am reading in the in file, and then outputting files with the end filename.
I need to do this for around 90 different files (up to file_088.txt).
I'm trying to put together a perl script that will just run them in the command line, one at a time, incrementing the filename that it reads in, and makes sure that that is equal to the out name.
Something is definitely wrong, and I'm not sure how to make sure that for 1,2,3,4,5,6,7,8,9 they are listed as '01,02,...,09' to make the naming scheme work properly.
Thanks!
I have a program that I am running with the following command:
Code:
./program -in file_001.txt -out file_001
where I am reading in the in file, and then outputting files with the end filename.
I need to do this for around 90 different files (up to file_088.txt).
I'm trying to put together a perl script that will just run them in the command line, one at a time, incrementing the filename that it reads in, and makes sure that that is equal to the out name.
Code:
for($f=1;$f<=88;f++){
'./program -in file_0$f.txt -out file_0$f'
}
Something is definitely wrong, and I'm not sure how to make sure that for 1,2,3,4,5,6,7,8,9 they are listed as '01,02,...,09' to make the naming scheme work properly.
Thanks!