美文网首页
[shell] for 循环(已知字符串)

[shell] for 循环(已知字符串)

作者: Silver_42ac | 来源:发表于2021-03-29 13:41 被阅读0次

    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