{"id":116,"date":"2004-08-07T14:03:43","date_gmt":"2004-08-07T21:03:43","guid":{"rendered":"http:\/\/thecyberwolfe.com\/blog\/?p=116"},"modified":"2004-08-07T14:03:43","modified_gmt":"2004-08-07T21:03:43","slug":"fun-with-scripting","status":"publish","type":"post","link":"http:\/\/thecyberwolfe.com\/blog\/2004\/08\/07\/fun-with-scripting\/","title":{"rendered":"Fun with scripting"},"content":{"rendered":"<p>I was reading through the latest edition of <em>Linux Format<\/em> last night, and I ran across a handy little shell script for Linux that works with KDE really well. It&#8217;s a one-click dictionary lookup. Heres the code:<\/p>\n<blockquote><p><code><br \/>\n#!\/bin\/bash<br \/>\nNAME=`dcop klipper klipper getClipboardHistoryItem 0`<br \/>\nkonqueror http:\/\/dictionary.reference.com\/search?q=$NAME<br \/>\n<\/code><\/p><\/blockquote>\n<p>Save this as &#8216;dictionary.sh&#8217; 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.<\/p>\n<p>Change the http:\/\/ link to thesaurus.reference.com for another good script.<\/p>","protected":false},"excerpt":{"rendered":"<p>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&#8217;s <a class=\"more-link\" href=\"http:\/\/thecyberwolfe.com\/blog\/2004\/08\/07\/fun-with-scripting\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-geekery"],"_links":{"self":[{"href":"http:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":0,"href":"http:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"wp:attachment":[{"href":"http:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/thecyberwolfe.com\/blog\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}