update
This commit is contained in:
14
language_learning/2021.05.10_parallel_calculations_using_sh_files/task.sh
Executable file
14
language_learning/2021.05.10_parallel_calculations_using_sh_files/task.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
for job_index in 0 1 2 3 4 5 6
|
||||
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