#!/bin/sh for i in `cat Grammar-wiki-A2.txt` do curl "https://translate.google.com/translate_tts?ie=UTF-8&q=$i&tl=zh&client=tw-ob" -H 'Referer: http://translate.google.com/' -H 'User-Agent: stagefright/1.2 (Linux;Android 5.0)' > $i.mp3 done