while true;do echo `date +%T`;sleep 10 ;done
执行完那个代码,每十秒输出:
16:49:18
16:49:28
16:49:38
16:49:48
16:49:58
16:50:08
16:50:18
16:49:28
16:49:38
16:49:48
16:49:58
16:50:08
16:50:18
转载于:https://blog.51cto.com/verdureorange/131180