直接上脚本了,利用printf实现,里面有个小bug,后续待解决。
#!/bin/bash Times=600 while true do printf " ${Times}s" Times=$((${Times}-1)) if [ ${Times} -eq 0 ] then exit 0 fi sleep 1 printf "r" printf "r" done
to be continue…….
直接上脚本了,利用printf实现,里面有个小bug,后续待解决。
#!/bin/bash Times=600 while true do printf " ${Times}s" Times=$((${Times}-1)) if [ ${Times} -eq 0 ] then exit 0 fi sleep 1 printf "r" printf "r" done
to be continue…….