summaryrefslogtreecommitdiffstats
path: root/util/bin
diff options
context:
space:
mode:
authortv <tv@also>2011-07-22 15:25:04 +0200
committertv <tv@also>2011-07-22 15:25:04 +0200
commited912b47481750b273570735cba991cbef9dc7d6 (patch)
treed7cc18659eab3b56b10bbfbe5bc0fcc3139f2693 /util/bin
parent8ff026d38a2ffc083cd8b9eb9421820552c4eaed (diff)
parent70bd966818b7e497dfeca5f1d66814e0a0944f67 (diff)
Merge branch 'toaster'
Diffstat (limited to 'util/bin')
-rwxr-xr-xutil/bin/google.suggest8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/bin/google.suggest b/util/bin/google.suggest
new file mode 100755
index 00000000..9bde17dc
--- /dev/null
+++ b/util/bin/google.suggest
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+uri="http://google.com/complete/search?output=json&q=$*"
+
+curl -sS "$uri" | sed -n '
+ s:^window.google.ac.h(\|)$::gp
+'
+echo