How about a shell script?
If you just need to run each submit.sh
, then this should do what you're asking in bash
:
for i in {1..1000}; do
cd "$i"
./submit.sh
cd ..
done
Or if you need to pass them as an argument to something, e.g. qsub
, then just add whatever you need, for example:
for i in {1..1000}; do
cd "$i"
qsub submit.sh
cd ..
done
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…