當前位置:首頁 » 編程軟體 » shell腳本while循環語句

shell腳本while循環語句

發布時間: 2025-01-03 16:13:28

A. 如何讓shell語句中的 while循環語句不等待一個php執行完就進行下一個循環

用SHELL子茄孝進顫判稿程,
....
(/usr/local/bin/沖汪php a.php)
.....

B. android 的shell中如何使用while和for,我需要實現100次循環dd命令。

android中的sh不支持「((",expr,這些,要用
i=$(($1-1))

#!/system/bin/sh
i=100
while [ i -gt 0 ]
do
echo $i
i=$((i-1))
done

下面是我自己實驗的一個只循環十次的結果
root@android:/ # i=10;while [ i -gt 0 ];do echo $i;i=$(($i-1));done
10
9
8
7
6
5
4
3
2
1

熱點內容
蘋果手機如何往安卓手機導通訊錄 發布:2025-07-04 10:19:11 瀏覽:131
未來之役如何換伺服器 發布:2025-07-04 10:13:51 瀏覽:215
curlc上傳 發布:2025-07-04 09:59:35 瀏覽:881
沒有編譯器能運行c程序嗎 發布:2025-07-04 09:54:38 瀏覽:308
創建配置目錄錯誤是什麼意思 發布:2025-07-04 09:53:35 瀏覽:49
為什麼租憑伺服器不能玩了 發布:2025-07-04 09:03:01 瀏覽:984
安卓手機減肥軟體哪個好 發布:2025-07-04 08:51:17 瀏覽:997
Oracle查看資料庫歸檔 發布:2025-07-04 08:44:53 瀏覽:608
950買什麼配置好 發布:2025-07-04 08:39:39 瀏覽:611
怎樣給應用加密 發布:2025-07-04 08:38:41 瀏覽:458