ABCD 实际是 字符串,不是变量;"A","B","C","D"
for sample in A B C D ; do
python ./draw_bar.py -input ${sample}.lst
mv new.bar.png ${sample}.new.bar.png
mv new.bar.pdf ${sample}.new.bar.pdf
done
ABCD 实际是 字符串,不是变量;"A","B","C","D"
for sample in A B C D ; do
python ./draw_bar.py -input ${sample}.lst
mv new.bar.png ${sample}.new.bar.png
mv new.bar.pdf ${sample}.new.bar.pdf
done
本文标题:[shell] for 循环(已知字符串)
本文链接:https://www.haomeiwen.com/subject/xwkbhltx.html
网友评论