rm md?.mdp -f
rm md??.mdp -f
i=0
to=21 #iteration number
temp=100.0
while [ $i != $to ]
do
#n_thread=`python -c "print $to*$thread"`
sed -e "142c\ref_t =${temp}" md.mdp > md${i}_1.mdp &
wait
sed -e "195c\gen_temp =${temp}" md${i}_1.mdp > md${i}.mdp &
echo $temp
wait
# calu temp
rm md${i}_1.mdp
i=`expr $i + 1`
temp=`sed -n "${i}p" temp.xvg`
done
https://blog.sciencenet.cn/blog-464042-641527.html
上一篇:
C语言循环写入文件下一篇:
CUDA_4.2 linux 错误CUDA Runtime API error 6: the launch time