playMe(){$ # $1 is the 'loading' message$ echo -e "\n $1 \n"$ sleep 1$ # $2 is the 'playing this' message$ echo -e "\n $2 \n"$ # $3 is the file to play, -e 's are ugly way to get data.$ $3 |grep -e Artist -e Name -e Album$ echo ""$ # reload menu when stream is closed.$ f-radiomenu$ }$ $ case $foo in$ $ 1)$ playMe "Please wait - connecting to BBC3" "Now pumping out the Beeb." bbc3-classical$ ;;$ 2)$ playMe "Rock on! Suffer while we buffer" "Playing Virgin Classic Rock" virgin-classic-rock$ ;;$ 3)$ playMe "Contacting ..." "Otto's Baroque Music " baroque$ ;;$ 4)$ playMe "Contacting ... " "Jazz from Atlanta " jazz$ ;;$ 5)$ playMe "Contacting ... " "ABC JJJ rocking now! " rock-jjj $ ;;$ 6)$ playMe "Contacting ..." "ABC Classic FM " classicfm-abc$ ;;$ 7)$ playMe "Contacting ..." "ABC News Service " news-abc$ ;;$