Shell-script to download Medi1 news

medi1.sh is a Shell-script to download Medi1 news:

#!/bin/bash
time=${1:-06}
url=`wget -q -O – http://medi1.com/infos/journaux.php | egrep -o "" | tail -n 1 | sed ‘s+.*href="(/player/player.php?i=[0-9][0-9]*)".*+1+’`
url="http://medi1.com/${url}"
mp3_url=`wget -q -O"$url" | egrep -o ‘http://.*:8000/medi1-static/.*.mp3’`
wget -O "medi1_$(date +%Y%m%d)_${time}.mp3" "${mp3_url}"