How to show wget progress bar only?

前端 未结 9 909
情歌与酒
情歌与酒 2021-01-30 06:19

For example:

wget http://somesite.com/TheFile.jpeg

downloading: TheFile.tar.gz ...
--09:30:42--  http://somesite.com/TheFile.jpeg
                   


        
9条回答
  •  日久生厌
    2021-01-30 06:38

    Here is a solution that will show you a dot for each file (or line, for that matter). It is particularly useful if you are downloading with --recursive. This won't catch errors and may be slightly off if there are extra lines, but for general progress on a lot of files it is helpful:

    wget -r -nv https://example.com/files/ | \
        awk -v "ORS=" '{ print "."; fflush(); } END { print "\n" }'
    

提交回复
热议问题