美文网首页
批量提交shell任务 2020-07-07

批量提交shell任务 2020-07-07

作者: SnorkelingFan凡潜 | 来源:发表于2020-07-07 21:04 被阅读0次
ls -CF /absolute_path/Annotation_ko_[0-9].sh  | awk '{print "qsub -cwd -l vf=2g -l num_proc=4 -q af.q "$0}' > ko.1.10.qsub.sh
##手动加入两位数10.sh
$ sh ko.1.10.qsub.sh
Your job 3720299 ("Annotation_ko_1.sh") has been submitted
Your job 3720304 ("Annotation_ko_2.sh") has been submitted
Your job 3720307 ("Annotation_ko_3.sh") has been submitted
Your job 3720309 ("Annotation_ko_4.sh") has been submitted
Your job 3720311 ("Annotation_ko_5.sh") has been submitted
Your job 3720313 ("Annotation_ko_6.sh") has been submitted
Your job 3720317 ("Annotation_ko_7.sh") has been submitted
Your job 3720320 ("Annotation_ko_8.sh") has been submitted
Your job 3720322 ("Annotation_ko_9.sh") has been submitted
Your job 3720324 ("Annotation_ko_10.sh") has been submitted

control + a 跳转至命令行开头 control + e 跳转至命令行结尾

相关文章

网友评论

      本文标题:批量提交shell任务 2020-07-07

      本文链接:https://www.haomeiwen.com/subject/wtazqktx.html