虽然很简单,但是不知道的时候还是要费一段时间去查找:#!/bin/shwhile truedo # get 0-30 rand num SLEEP_TIME=`expr $RANDOM % 30` echo $SLEEP_TIME sleep 1done
编辑 webmaster