How to solve the problem of multi-line display of wget download progress bar in CentOS

  
                

Recently, in the operation of CentOS system, when downloading files using wget, the problem of multiple lines of download progress is displayed. The Xiaobian of the system home learned that many people have such problems, so what is the cause? What? How to solve it? After

In order to solve the problem before garbled after Putty client to connect to CentOS, set LANG = zh_CN.UTF-8, when using wget to download, wget download progress bar abnormalities, even Can not be displayed in a line, become a multi-line display of potholes, each time wget will automatically generate a new line, the result is to download the slow progress of the file, without a while the entire screen is the world of wget progress bar.

The code is as follows:

The progress bar of wget becomes a screen killer with sad reminders. The full screen is like this. . . (= number omits countless) "/p" "p" 99% [========================================== =========” ] 10,416,337 6.09K/s eta (Central England

99% [================ ===========================] 10,419,241 6.10K/s eta (Central England

99% [==================================================] 10,419,241 5.73K/s eta (Central England

99% [========================================= ==========” ] 10,425,049 5.79K/s eta (Central England

99% [=============== ============================] 10,427,953 5.65K/s eta (Central England

100 %[============================================================== ,288 5.65K/s in 27m 12s

This is completely different from the original line showing the progress bar. It was discovered later that because of the translation, eta was converted to eta (Central Time). Causes the entire output to be too long, causing line breaks, causing the next output to start from a new line.

Then later, I found online too. Many people have this problem. The key point is that this problem has existed since long ago. It is still very fast to modify.

The code is as follows:

#Note that the file path is at:/Usr/share/locale/zh_CN/LC_MESSAGES/"/p" "p"cd /usr/share/locale/zh_CN/LC_MESSAGES/

#renamed first

mv wget.mo wget .mo.bak

#Replace eta (Central Time) as ETA from the renamed file and export the new file

msgunfmt wget.mo.bak -o -

Copyright © Windows knowledge All Rights Reserved