How to grep the output of youtube-dl?
Posted
by
mohtaw
on Ask Ubuntu
See other posts from Ask Ubuntu
or by mohtaw
Published on 2014-05-27T13:53:31Z
Indexed on
2014/05/28
4:03 UTC
Read the original article
Hit count: 333
grep
|youtube-dl
The normal output for youtube-dl is the following
[download] Downloading video #3 of 33
[youtube] WbWb0u8bJrU: Downloading webpage
[youtube] WbWb0u8bJrU: Downloading video info webpage
[youtube] WbWb0u8bJrU: Extracting video information
[download] Resuming download at byte 107919109
[download] Destination: Lec 6.mp4
[download] 86.2% of 137.18MiB at 48.80KiB/s ETA 06:37
I need to show the first and last monitor the downloading I use the command
youtube-dl -cit -f 18 URL | grep -e ETA -e "Downloading video #"
It's not working only the first line is working while the last line is not, and I see the download is running as the file size grows
© Ask Ubuntu or respective owner