Есть плейлист iptv с сылками вида
#EXTINF
https://tv.com/blabla0/variant.m3u8
#EXTINF
https://tv.com/blabla1/variant.m3u8
#EXTINF
https://tv.com/blabla2/variant.m3u8
#EXTINF
https://tv.com/blabla3/variant.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1500000,PROGRAM-ID=1,RESOLUTION=640x360
https://tv.com/1500000/playlist.m3u8
#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=1500000,URI="https://tv.com/1500000/playlist.m3u8"
#EXT-X-STREAM-INF:BANDWIDTH=600000,PROGRAM-ID=1,RESOLUTION=384x216
https://tv.com/600000/playlist.m3u8
#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=600000,URI="https://tv.com/600000/playlist.m3u8"
BANDWIDTH
https://tv.com/blabla0/BANDWIDTH/variant.m3u8
Немного не понимаю как реализовать. Такой цикл
for var1 in $(curl -s http://example.com/123 | grep https)
do
echo "$var1"
done