卷曲进度条和进度条问题。它重复数据
Curl progress meter and bar problem. It duplicate data
我有脚本,最后阶段是使用 curl 下载文件。我需要显示下载进度。当我在终端 curl -# $url - O
上输入时,它运行良好。我将它与
一起使用
while read line
do
"curl code"
done <url
在那种情况下,它会开始用 # 填满我的屏幕。默认进度表就是这样做的。它开始用进度数据填充我的屏幕。
here is picture if you dont understand
progress bar
在 curl 文档中写道他们修复了它。
İ如果我无法解决这个问题,我如何才能只显示进度百分比?它可以用 sed
剪切,但我不知道如何。
关于你的问题
How I can show only percentage of progress?
根据 CURL Progress Bar: How to pipe and extract numbers only using grep? or without a wrapper according curl progress - only show percentage,这似乎不太容易实现。
我有脚本,最后阶段是使用 curl 下载文件。我需要显示下载进度。当我在终端 curl -# $url - O
上输入时,它运行良好。我将它与
while read line
do
"curl code"
done <url
在那种情况下,它会开始用 # 填满我的屏幕。默认进度表就是这样做的。它开始用进度数据填充我的屏幕。 here is picture if you dont understand
progress bar
在 curl 文档中写道他们修复了它。
İ如果我无法解决这个问题,我如何才能只显示进度百分比?它可以用 sed
剪切,但我不知道如何。
关于你的问题
How I can show only percentage of progress?
根据 CURL Progress Bar: How to pipe and extract numbers only using grep? or without a wrapper according curl progress - only show percentage,这似乎不太容易实现。