运维网's Archiver
论坛
›
Shell/Powershell
› 小闹钟shell脚本
tangbinde
发表于 2018-8-21 09:33:23
小闹钟shell脚本
#!/bin/bash
read -p "输入你定时的时间(格式为时:分:秒):" ntime
while true
do
now=`date +%H:%M:%S`
echo $now
sleep 1
clear
if [ "$ntime" == "$now" ];then
for (( i=0;i
页:
[1]
查看完整版本:
小闹钟shell脚本