Linux shell 倒计时脚本
sleep_time() {
sleep=10
while [ $sleep -gt 0 ];do
echo -n $sleep
sleep 1
sleep=$(($sleep - 1))
echo -ne "\r \r"
done
}
sleep_time() {
sleep=10
while [ $sleep -gt 0 ];do
echo -n $sleep
sleep 1
sleep=$(($sleep - 1))
echo -ne "\r \r"
done
}