shell 4

image.png
image.png

ifs可以任意定义

image.png

单层循环判断

image.png

内外层循环

for n in {1..5}
do
for i in {a..e}
do
echo "内层循环的值i" == 'd' ]
then
break
fi
done

echo "外层循环的值i"
echo "---------------------------"

done

image.png

过滤

你可能感兴趣的:(shell 4)