#!/bin/sh # search shoutcast for a specific stream and return the stream url... # probably only works for exact matches. # # usage: shoutcast-search searchstring # # example: shoutcast-search 'kcrw simulcast' links -dump "http://shoutcast.com/directory/index.phtml?s=$1" | awk '/shoutcast-playlist/ { print $2 }'