shell死循环

  sre

60271c68cf2f74633.jpg_fo742.jpg
while:

#!/bin/bash
while: [ 1 ]
do
      sleep 1
      echo 123
done


for:

#!/bin/bash
for ((;;))
do
      sleep 1
      echo 123
done

LEAVE A COMMENT

Captcha Code