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 Clip -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)