update
This commit is contained in:
14
2021.05.10_parallel_calculations_using_sh_files/task.sh
Normal file
14
2021.05.10_parallel_calculations_using_sh_files/task.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
for ((job_index=0; job_index<7; job_index++))
|
||||
do
|
||||
|
||||
cp a.py a${job_index}.py
|
||||
sed -i "s/job_index = -1/job_index = ${job_index}/" a${job_index}.py
|
||||
|
||||
|
||||
cp a.sh a${job_index}.sh
|
||||
sed -i "s/python a.py/python a${job_index}.py/" a${job_index}.sh
|
||||
qsub a${job_index}.sh
|
||||
|
||||
done
|
Reference in New Issue
Block a user