Skip to content

Instantly share code, notes, and snippets.

@jpignata
Created October 24, 2009 23:44
Show Gist options
  • Save jpignata/217805 to your computer and use it in GitHub Desktop.
Save jpignata/217805 to your computer and use it in GitHub Desktop.
ws() { dig +short txt `echo $* | sed 's/ /_/g'`.wp.dg.cx | sed 's/" "//g'; }
# jp@populuxe:~$ ws Root Beer
# "Root beer is a carbonated beverage originally brewed using sassafras. Root beer, popularized in North
# America, comes in two forms: alcoholic and soft drink. The historical root beer was analagous to small
# beer, in that the process provided a beverage with a very low alcohol content.
# http://en.wikipedia.org/wiki/Root_beer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment