dubo的个人博客分享 http://blog.sciencenet.cn/u/dubo

博文

奇葩的shell脚本,输出“H:\2\gro.gro"...“H:\28\gro.gro"等

已有 2249 次阅读 2014-5-6 07:42 |系统分类:论文交流

i=4

temp=30

temp_to=62            #iteration number


while [ $temp != $temp_to ]

do

rm all_${temp}.txt

sed -e "7cmol new {H:\PRL_data\data\cone_two_new4\\${temp}\gro\gb.gro} type {gro} first 0 last -1 step 1" all.txt > all_${temp}_1.txt &

wait

sed -e "8cset num_molecular $i" all_${temp}_1.txt > all_${temp}.txt &

echo $temp

wait

# calu temp

rm all_${temp}_1.txt

i=`expr $i + 1`

temp=`expr $temp + 2`

done

a.sh



https://blog.sciencenet.cn/blog-464042-791739.html

上一篇:简历模板
下一篇:20140510
收藏 IP: 202.113.11.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-7-23 10:32

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部