That is because our solutions only look at the first "play(" string in every line of the page. In the page you now show, there are several "play(" per line. We just need an additional 'tr' command to break those lines: $ wget http://www.speakenglish.co.uk/vocab/countries_and_nationalities -O - | tr '.' '\n' | awk -F \' '/^play\(/ { print $2 ".mp3" }' | wget -B http://speaklanguages.cachefly.net/sound/english/mp3/ -i -

Reply via email to