📜  linux for loop 1 到 100 奇数 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:30.355000             🧑  作者: Mango

代码示例1
for i in {1..99}
do
        rem=$(($i % 2))
        if [ "$rem" -ne "0" ]; then
                echo $i
        fi
done