August 2004
S M T W T F S
« Jul   Sep »
1234567
891011121314
15161718192021
22232425262728
293031  

About

I am The Cyberwolfe and these are my ramblings. All original content is protected under a Creative Commons license - always ask first.
Creative Commons License

Archive for August 7th, 2004

Fun with scripting

Posted in Geekery on August 7th, 2004

I 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.