shell/结构化命令/两个for嵌套循环.sh

12 lines
152 B
Bash

#!/bin/bash
#nesting for loops
for (( a=1; a<=3; a++ ))
do
echo "Starting loop $a:"
for (( b=1; b<=3; b++))
do
echo "Inside loog: $b:"
done
done