终端下的网络查词小脚本

sh/bash/dash/ksh/zsh等Shell脚本
yihuanlingjian
帖子: 30
注册时间: 2007-10-19 16:53

Re: 终端下的网络查词小脚本

#16

帖子 yihuanlingjian » 2009-02-09 17:53

简单的把url改一下就可以了,有道列出的项目比较多,格式化的时候可能费些事
w3m -dump http://dict.youdao.com/search?q=$1
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

Re: 终端下的网络查词小脚本

#17

帖子 543082593 » 2009-09-14 13:12

楼主 不得不顶 虽然 这个脚本很简单但是 很实用 thx very much
:em11
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 终端下的网络查词小脚本

#18

帖子 eexpress » 2009-09-14 13:17

eagle5678 写了:
yunpengwu 写了:
eagle5678 写了:
INUYASHA 写了:
eexpress 写了:我的sdcv的还配了热键和notify显示
共享一下拉
楼上,ee的东西拿来也不能用的,免了吧,楼上楼上楼上的很好了

哈哈,太打击ee了~~
不是打击ee,ee是长者,要尊重。

我是说,他的东东,都是配置自己用的,没有通用性……还要自己改……
还讨论。是你们不会用。因为我在其他帖子说明过的。鼠标选字,按热键显示的。

查词,不需要网络的。整句翻译的,才需要。都notify显示的。我都发过。
● 鸣学
cmdblock
帖子: 307
注册时间: 2008-12-01 7:52
来自: 蜀山

Re: 终端下的网络查词小脚本

#19

帖子 cmdblock » 2009-10-26 6:49

楼主的脚本,好像不能查找短语
比如make use of
另外,网易有道那个英英翻译是直接抄袭的dict.cn上的
我改了下,可以查短语了

代码: 全选

#!/bin/sh
search=compact.php
w3m -dump -no-cookie http://dict.cn/mini.php?q=$1+$2+$3+$4 | sed -e '$d' -e 's/</ /g' -e 's/>/ /g'[cmdblock@wg tmp]$ 
[cmdblock@wg tmp]$ dic make use of
Define make use of :
利用

例句与用法:
1. She makes use of people she meets as raw material for her fiction.
她把她所遇见的人们作为她创作小说的素材。
2. As to intelligence, the boy has more than he can possibly make use of.
至于那男孩的才智, 多得他都用不完。
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

Re: 终端下的网络查词小脚本

#20

帖子 543082593 » 2009-10-26 13:31

我现在用的就是LZ的脚本 蛮不错的 真的 汉语 英语 通吃 :em04
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
yihuanlingjian
帖子: 30
注册时间: 2007-10-19 16:53

Re: 终端下的网络查词小脚本

#21

帖子 yihuanlingjian » 2010-12-09 0:25

dict.cn已经不能通过这样的方式来访问了,不过有道还可以...
回复