shell 中的 do while 語句 語法介紹while 用於循環,根據條件執行一段代碼塊 12345# 語法while [ 條件 ]do # do something...done 範例123456789#!/bin/bashc = 1while [ $c -le 5 ]do echo welcome $c times # c = c+1 ((c++))done Linux #Linux #shell shell 中的 do while 語句 https://austin72905.github.io/2023/11/27/linux-shell-while/ 作者 Austin Lin 發布於 2023年11月27日 許可協議 shell 中的 case 語句 (switch) 上一篇 shell 中的 for 語句 下一篇