Skip to content

Instantly share code, notes, and snippets.

@xalakox
Created Dec 19, 2015
Embed
What would you like to do?
#!/bin/sh
awk -F',' '/EXTINF/ {canal=$NF; gsub(/ /,"_",canal); getline url; print canal;print "shoot.sh " canal " " url}' canales.m3u
#EXTM3U
#EXTINF:-1,Ocho TV
http://example1.com/master.m3u8
#EXTINF:-1,Foro TV
http://example2.com/PROFILE03.m3u8?-1332/1499-20150816T153535.ts
#EXTINF:-1,Milenio TV
http://example3.com/PROFILE03.m3u8?-1332/1499-20150816T153535.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment