【发布时间】:2020-11-13 06:24:27
【问题描述】:
我正在编写一个带有一些命令的 shell 脚本。我想给它添加一个进度条。
例如-
Command 1 #Progress bar at 25%
Command 2 #Progress bar at 50%
Command 3 #Progress bar at 75%
Command 4 #Progress bar at 100%
非常感谢任何帮助。
编辑:我正在使用 linux 的 Bash 终端,并希望在终端中显示进度条。
【问题讨论】:
-
pv 可能对你有帮助。
-
哪个操作系统/外壳? tsh、csh、bash、ksh、powershell 等?
-
您是在寻找图形 (X) 进度条,还是基于终端的进度条?
-
@jim 我正在使用 Linux Mint 和 Bash shell
-
@dash-o 我正在寻找基于终端的进度条。
标签: bash shell scripting sh zsh