or dont, who knew
This commit is contained in:
parent
62ef9582ff
commit
027b4c1f46
@ -9,7 +9,8 @@ rm everything-full.m3u everything-lite.m3u randomized.m3u sorted.m3u
|
||||
for i in $(ls -v) ; do echo '#PLAYLIST: '$i | cat - $i | sed 's/#EXTM3U//g' | awk NF >> everything-full.txt ; done
|
||||
|
||||
# add #EXTM3U to the first line and change the text file to a m3u file format
|
||||
cat everything-full.txt | awk '!seen[$0]++' | grep -B1 "http" | grep -A1 "EXTINF" | awk 'length>4' | sed '1s/^/#EXTM3U\n/' > everything-full.m3u
|
||||
#cat everything-full.txt | awk '!seen[$0]++' | grep -B1 "http" | grep -A1 "EXTINF" | awk 'length>4' | sed '1s/^/#EXTM3U\n/' > everything-full.m3u
|
||||
cat everything-full.txt | awk '!seen[$0]++' | sed '1s/^/#EXTM3U\n/' > everything-full.m3u
|
||||
|
||||
# read the full file and remove all extra stuff, we just need the links
|
||||
cat everything-full.m3u | sed -n '/^#/!p' > everything-lite.m3u
|
||||
|
Loading…
Reference in New Issue
Block a user