面试运维时的笔试题: 每隔10秒打印一次系统时间,打印10次。 #!/bin/bash i=1 while [ $i –le 10 ] do date sleep 10 let i++ done 执行结果如下: 转载于:https://blog.51cto.com/su007/945296