문제

I want to output only the last line of wget in to the File. I am using openWRT with wget-nossl package

when I am trying to output all the file with wget 2>tempLOG command: my router get very slow internet connection.(it cuts speed 3 times because it writes to the file). so I would like to write to the file only the last line of the wget command which prints: x MB downloaded in Y time.

is there any option to do so ?

도움이 되었습니까?

해결책

See How to grep download speed from wget output?

One of the solution : wget -O /dev/null your_url 2>&1 | grep '([0-9.]+ [KM]B/s)'

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top