#!/bin/bashtput civiswhile [ 1 ]do tput clear tput cup 3 10 tput setb 0 tput setf 2 echo -e "\e[1;32m$(date "+%Y-%m-%d %H:%M:%S %A")\e[0m" sleep 1done
#!/bin/bash
tput civis
while [ 1 ]
do
tput clear
tput cup 3 10
tput setb 0
tput setf 2
echo -e "\e[1;32m$(date "+%Y-%m-%d %H:%M:%S %A")\e[0m"
sleep 1
done
#!/bin/bashwatch -n 1 ‘date +"%F %A %T"‘
watch -n 1 ‘date +"%F %A %T"‘
shell脚本实现动态时钟
原文:http://hiyang.blog.51cto.com/10728919/1792844