|
|
发表于 2009-7-12 18:26:09
|
显示全部楼层
写了下脚本, 在终端用#/bin/bash
curl -s -d q="$1" http://www.dict.cn/search.php | iconv -f gbk -t utf8 | sed '/<h1>/,/英英解释/!d;/class="pronounce"/d;/class="more rel"/d;/^\t/d;s/<[^>]*>//g;s/动词过去式:/, /g;s/过去分词:/, /g;s/d现在分词:/, /g;/英英解释/d;' | sed 'N;/^\n*$/D;1,2d'
输出示例:./dictcn man
n. 男人,人类,人v. 为...配备人手
例句与用法:
If you want a good music teacher, he's your man.
你们要是缺个好的音乐教师,他就是最理想的人选。
The staff speak as one man on this issue.
在这个问题上全体职员意见一致。
He's his own man, but he doesn't ignore advice.
他虽然自有主张,但并不轻视别人的意见。
He has worked for the firm, man and boy, for thirty years.
他从小至今已为该商行干了三十年。
Be a man!
拿出点勇气来!
All man are born equal.
人人生而平等。
Man is mortal.
人都是会死的。
词形变化:
名词复数:men, manned, manned, manned, manne, manning |
|