Simple 'dict' function. | |
Thursday Apr 18 11:59:41 2013 | |
I use http://www.thefreedictionary.com/ on a daily basis. I've got a | |
bookmark in my GUI browser to access the site quickly. However, today | |
I realized that my searches are in the form URL/word_I_want_to_look_up | |
and I thought that it could be much more handy and faster to use a CLI | |
browser like elinks (one of my favourites) or lynx. | |
So I wrote a very simple function to ease my searches: | |
dict () | |
{ | |
URL="http://www.thefreedictionary.com" | |
BROWSER="lynx" | |
$BROWSER ${URL}/${1} | |
} | |
Now I just have to type: dict word_I_want_to_look_up and enjoy | |
______________________________________________________________________ | |
Gophered by Gophernicus/1.6 on NetBSD/amd64 9.1 |