I have a shell script in which I am passing the same value many times as arguments. Instead of hardcoding this redundant value across all py scripts, I wanted to see if I can work with variables and pass those into the py script as arguments.
Here is the script.sh:
python A.py --month=10
python B.py --country=USA --month=10
I would like something like this:
#Setting variables to pass into args
country=USA
month=10
python A.py --month=month
python B.py --country=country --month=month
How would I do this?