How to grep download speed from wget output?

后端 未结 5 1735
挽巷
挽巷 2020-12-10 06:58

I need to download several files with wget and measure download speed.

e.g. I download with

wget -O /dev/null http://ftp.bit.nl/pub/Open         


        
5条回答
  •  清歌不尽
    2020-12-10 07:20

    here's suggestion. You can make use of wget's --limit-rate=amount option. For example,

    --limit-rate=400k will limit the retrieval rate to 400KB/s. Then its easier for you to calculate the total speed. Saves you time and mental anguish trying to regex it.

提交回复
热议问题