星空网 > 软件开发 > 操作系统

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脚本中生成延时

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流