#/bin/bash
if [ $# -eq ]; then
counter=""
counter1=""
echo "for loop:"
for i in $(seq $); do
echo $i
done for i in $(seq ); do
echo "welcome $i times"
done for((i=;i<;i++)); do
echo $i
done echo "while loop"
while [ $counter -le $ ]; do
echo $counter
counter=$((counter+))
done echo "until loop:"
until [ $counter1 -gt $ ]; do
echo $counter1
counter1=$((counter1+))
done
else
echo "error"
fi
相关文章
- 10-04Python for loop and while loop
- 10-04bash for loop in one line
- 10-04shell_for循环_while_until_break_continue语句用法
- 10-04Asynchronous method in while loop
- 10-04Delphi 系统[9]关键字和保留字 for、to、downto、do、while、repeat、until
- 10-04while循环和until语句
- 10-04shell循环有for while until 这三个都是内部命令
- 10-04shelll脚本 for while until 循环
- 10-04while与until
- 10-04PL/SQL 循环LOOP WHILE FOR