#!/bin/bash
for num in 1 2 3
do
for char in "a b c"
do
echo $num $char
done
done
#!/bin/bash
for num in 1 2 3
do
for char in "a b c"
do
echo $num $char
done
done
本文标题:linux # shell # for 嵌套
本文链接:https://www.haomeiwen.com/subject/gvheoftx.html
网友评论