Re: [Ubuntu-zh] 一个翻译脚本,用于终端的命令行

2012-03-23 文章 hooxin firefoxmmx
支持. 在 2012年3月24日 上午9:30,luoshupeng 写道: > 这个很强大啊 > 于 2012年03月23日 23:26, Hex Lee 写道: > > ts(){ >> >> curl -s \ >> " >> http://fanyi.youdao.com/**translate?smartresult=dict&** >> smartresult=rule&smartresult=**ugc&sessionFrom=dict.top

Re: [Ubuntu-zh] 一个翻译脚本,用于终端的命令行

2012-03-23 文章 luoshupeng
这个很强大啊 于 2012年03月23日 23:26, Hex Lee 写道: ts(){ curl -s \ " http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule&smartresult=ugc&sessionFrom=dict.top"; \ -d \ "type=AUTO& i=$1&doctype=json&xmlVersion=1.4&keyfrom=fanyi.web&ue=UTF-8&typoResult=true&flag=false" \

[Ubuntu-zh] 一个翻译脚本,用于终端的命令行

2012-03-23 文章 Hex Lee
ts(){ curl -s \ " http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule&smartresult=ugc&sessionFrom=dict.top"; \ -d \ "type=AUTO& i=$1&doctype=json&xmlVersion=1.4&keyfrom=fanyi.web&ue=UTF-8&typoResult=true&flag=false" \ | sed -E -n 's/.*tgt":"([^"]+)".*/\1/p' ;