美文网首页
linux # shell # for 嵌套

linux # shell # for 嵌套

作者: FlyingPenguin | 来源:发表于2018-09-27 11:59 被阅读5次
    #!/bin/bash
    for num in 1 2 3 
    do
        for char in "a b c"
        do
        echo $num $char
        done
    done
    

    References:

    https://zhidao.baidu.com/question/937384006014943692

    相关文章

      网友评论

          本文标题:linux # shell # for 嵌套

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