linux # shell # for 嵌套

2018-09-27  本文已影响5人  FlyingPenguin
#!/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

上一篇 下一篇

猜你喜欢

热点阅读