I have a program that is run from the command line like this
python program.py 100 rfile
How can I write a new script so that instead of running it with just the ‘100’ argument, I can run it consecutively with a list of arguments like [50, 100, 150, 200]?
Edit: The reason I am asking is that I want to record how ‘program.py’ executes with different arguments.
If you create a bash file like this
then do
chmod +xon that file, when you run it, it will run these consecutively: