bash スクリプトのwhile文で無限ループさせるには

最終更新日時 (UTC): 2020-02-23 03:15



#!/bin/sh
while true
do
    [Do whatever you want]
done

あるいは



#!/bin/sh
while :
do
    [Do whatever you want]
done

参考URL
http://linux.just4fun.biz/逆引きシェルスクリプト/whileループのサンプル.html#rf89d5f5

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.