shell实现的进度条
来源:互联网 发布:新东方 邓剑波 知乎 编辑:程序博客网 时间:2024/05/01 22:26
#!/bin/bash
arr=('|' '/' '-' '\\')
function proc(){
local index=0
for((i=0;i<=100;i+=2))
do
echo -e -n "\033[34m"
let ch=index%4
let index++
str="${str}"'*'
printf "[%-50s][%d%%][%c]\r" "$str" "$i" "${arr[$ch]}"
sleep 0.1
done
}
function main()
{
proc
}
main
arr=('|' '/' '-' '\\')
function proc(){
local index=0
for((i=0;i<=100;i+=2))
do
echo -e -n "\033[34m"
let ch=index%4
let index++
str="${str}"'*'
printf "[%-50s][%d%%][%c]\r" "$str" "$i" "${arr[$ch]}"
sleep 0.1
done
}
function main()
{
proc
}
main
0 0
- shell实现的进度条
- shell实现简单的进度条
- shell脚本实现一个彩色的进度条
- shell脚本实现彩色进度条的编写
- shell脚本实现进度条
- shell实现进度条
- shell脚本语言实现进度条
- shell实现彩色进度条
- shell实现彩色进度条
- Shell进度条实现
- shell进度条的编写
- Shell下的进度条
- shell实现了一个进度条
- 在shell中实现进度条
- shell语法及实现进度条
- shell实现一个简单进度条
- shell脚本实现进度条功能
- shell脚本实现彩色进度条
- 每天小练笔1-周期串问题
- 数据结构作业
- MapReduce on HBase使用与集成
- linux中打开大文件的问题(大于4G)
- 尾递归
- shell实现的进度条
- ThinkPHP 5.数据库基本操作
- 面试
- Android学习参考链接收藏
- 【Unity】基于MVC模式的背包系统 UGUI实现
- foundation-NSValue
- xcode git 使用
- 第二关
- shell实例讲解while、for、until、if等