How to grep download speed from wget output?

后端 未结 5 1736
挽巷
挽巷 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:06

    Why can't you just do this:

    perl -ne "/^Downloaded.*?\((.*?)\)/; print $1"
    

提交回复
热议问题