I'm hoping to create a .cl script to run in IRAF. I have a list of spectra on which I want to run dispcor. I was wondering if there's an easy way to paste the output file names with incrementing numbers. The lines look like this:
dispcor extracted_ori5_r1.0001.fits calibrated_ori5_r1.0001.fits
I want the output file name to increase (
.0002, etc.). Any help would be greatly appreciated!