基本语法:
for i in ;
do;
done
1、处理文件夹下的所有文件:
for i in $(ls /public/home/fengting/demo/pan69/sort_bam);
2、简单的for循环:
for ((i=1;i<=33;i++));
do ngmlr -t 10 -r /public/home/fengting/database/reference/rice/IRGSP-1.0_genome.fasta -q /public/home/fengting/data/hhz/H7L$i.arrow.polish.fasta -o /public/home/fengting/data/rihhz/H7L$i.sam
网友评论