#!/usr/local/bin/bash -x rm -Rf txt.txt /data/m3u.m3u tmp for i in {0,20,40,60,80} do # change sgenre= to what ever you want lynx -dump "http://www.shoutcast.com/directory/index.phtml?sgenre=Electronic&startat=$i" | grep 'yp.shoutc' >> txt.txt done for i in {0,20,40,60,80} do # change sgenre= to what ever you want lynx -dump "http://www.shoutcast.com/directory/index.phtml?sgenre=Old%20School&startat=$i" | grep 'yp.shoutc' >> txt.txt done for i in {0,20,40,60,80} do # change sgenre= to what ever you want lynx -dump "http://www.shoutcast.com/directory/index.phtml?sgenre=Alternative&startat=$i" | grep 'yp.shoutc' >> txt.txt done for i in {0,20,40,60,80} do # change sgenre= to what ever you want lynx -dump "http://www.shoutcast.com/directory/index.phtml?sgenre=Turntablism&startat=$i" | grep 'yp.shoutc' >> txt.txt done for i in {0,20,40,60,80} do # change sgenre= to what ever you want lynx -dump "http://www.shoutcast.com/directory/index.phtml?sgenre=Hardcore&startat=$i" | grep 'yp.shoutc' >> txt.txt done for i in {0,20,40,60,80} do # change sgenre= to what ever you want lynx -dump "http://www.shoutcast.com/directory/index.phtml?sgenre=Drum%20and%20Bass&startat=$i" | grep 'yp.shoutc' >> txt.txt done for i in {0,20,40,60,80} do # change sgenre= to what ever you want lynx -dump "http://www.shoutcast.com/directory/index.phtml?sgenre=Breakbeat&startat=$i" | grep 'yp.shoutc' >> txt.txt done for i in {0,20,40,60,80} do # change sgenre= to what ever you want lynx -dump "http://www.shoutcast.com/directory/index.phtml?sgenre=Techno&startat=$i" | grep 'yp.shoutc' >> txt.txt done cat txt.txt | sed 's/.*http:/sleep 1;wget '\''http:/g' | sed 's/$/'\''/g' | awk '!x[$0]++'|grep -v ttsl > tmp bash -x tmp cat tunein* | sed 's/80[0-9][0-9]/monkey/g' | grep -v monkey | grep ":80" | sed 's/.*=//g'| awk '!x[$0]++' >> /data/m3u.m3u # broken ... head -c 10 tunein* | sed 's/80[0-9][0-9]/monkey/g' | grep -v monkey | grep ":80" | sed 's/.*=//g'| awk '!x[$0]++' >> /data/m3u.m3u #rm txt.txt tmp