zoukankan      html  css  js  c++  java
  • 打印脚本执行进度条

    #!/bin/sh

    echo -n radio:
    tput sc                                                                                                                  #保存当前光标位置
    count=0
    while true;
         do
             if [ $count -lt 10 ];then
                 let count++;
                 sleep 1;                                                                                                   #休眠1秒
                 tput rc;                                                                                                   #取出当前光标位置
                 tput ed
                 #radia=`echo "scale=2;$count/10*100" | bc`
                 #echo -n "$radia%";
                 echo -n ". "
                 tput sc
             else exit 0;
             fi
         done
    echo
    echo

  • 相关阅读:
    无法在WEB服务器上启动调试
    Zedgraph悬停时显示内容闪烁的解决
    用ZedGraph控件作图圆
    34.node.js之Url & QueryString模块
    33.Node.js 文件系统fs
    32.Node.js中的常用工具类util
    31.Node.js 常用工具 util
    30.Node.js 全局对象
    28.Node.js 函数和匿名函数
    27.Node.js模块系统
  • 原文地址:https://www.cnblogs.com/wcwen1990/p/7044507.html
Copyright © 2011-2022 走看看