I have a python command that runs as follows:
python script.py -file 1000G_EUR_Phase3_plink/1000G.NUMBER --out GTEx_Cortex.chrNUMBER
I would like to replace the NUMBER variable with the numbers 1:20. So if I replace NUMBER with 1 it would look like this:
python script.py -file 1000G_EUR_Phase3_plink/1000G.1 --out GTEx_Cortex.chr1
and this on the second iteration (if I replace it with 2):
python script.py -file 1000G_EUR_Phase3_plink/1000G.2 --out GTEx_Cortex.chr2
But I don't want to keep manually changing NUMBER 20 times. I want to automate the entire thing.
How can I do this in the command prompt? Should this be done in VIM or is there another way in python?
Thanks!