shell脚本实现动态时钟
时间:2016-06-25 15:14:18
收藏:0
阅读:944
#!/bin/bashtput civiswhile [ 1 ]dotput cleartput cup 3 10tput setb 0tput setf 2echo -e "\e[1;32m$(date "+%Y-%m-%d %H:%M:%S %A")\e[0m"sleep 1done
在Xshell中运行会有闪屏,不太正常;在本地运行一切正常
评论(0)