shell脚本中生成延时
shell脚本中生成延时#!/bin/bashecho -n count:tput sccount=0;while true;doif [ $count -lt 40 ];then let count++; sleep 1; tput rc tput ed echo -n $count;else exit 0;fidone
tput sc 存储光标位置;
tput rc 恢复光标位置;
tput ed 清除从当前光标位置到行尾之间的所有内容
shell脚本中生成延时#!/bin/bashecho -n count:tput sccount=0;while true;doif [ $count -lt 40 ];then let count++; sleep 1; tput rc tput ed echo -n $count;else exit 0;fidone
tput sc 存储光标位置;
tput rc 恢复光标位置;
tput ed 清除从当前光标位置到行尾之间的所有内容