|||
涉及到sed脚本内引用变量:
http://www.cnblogs.com/gx-303841541/archive/2012/10/25/2738029.html
# job.sh # change the random number in pr.mdp for i in {1..4} do cp -r run0 run${i} cd run${i} k=$(($i*2000)) sed "s/140000/${k}/g" ../pr.mdp > pr.mdp grompp -f pr.mdp -c pr.gro -p abeta.top -o md.tpr qsub -N c1_p2md${i} -pe norte 24 -q thin.q -cwd -V -b y mdrun -nt 24 -deffnm md cd .. done
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-1-9 17:01
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社