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