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



#!/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.