#!/bin/bash
# simple dictionary.
# lookup words from Youdao/Dict.cn dictionary.
# keep loopup history in home directory.
DICTHISTORY=$HOME/.dicthistory
d=`date --rfc-3339=seconds`
echo "$d $1" >> $DICTHISTORY
w3m "http://dict.youdao.com/search?q=$1"
# w3m "http://dict.cn/$1"
------------------------
用法:
$ dict hoxily
来查询hoxily的意思.若含有空格,用%20代替.