Fun with scripting
Posted in Geekery on August 7th, 2004I was reading through the latest edition of Linux Format last night, and I ran across a handy little shell script for Linux that works with KDE really well. It’s a one-click dictionary lookup. Heres the code:
#!/bin/bash
NAME=`dcop klipper klipper getClipboardHistoryItem 0`
konqueror http://dictionary.reference.com/search?q=$NAME
Save this as ‘dictionary.sh’ someplace in your home directory, make it executalble and create a link on your desktop. Highlight a word somewhere and click the link, and it will open Konqueror up and get the definition for you. The sheer simplicity of this amazes me.
Change the http:// link to thesaurus.reference.com for another good script.
Hollerings