CODE:
LIST=0 1 2 3 4 5
PREFIX=rambo
EXPECTED RESULT:
rambo0:
sh rambo_script0.sh
rambo1:
sh rambo_script1.sh
Since my LIST has 6 elements, 6 goals need to be created. In the future, if I want to add more goals, I want to be able to simply modify my LIST and not touch any other part of the code.
How should loop logic be written?
Lazer source
share