shell脚本实现死循环

2014-11-23 23:20:58 · 作者: · 浏览: 5
#!/bin/sh
while :
do
# do something
done
“:” 表示实现一个空语句,什么也不做,相当于C语言的“;”