summaryrefslogtreecommitdiffstats
path: root/util
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
commit31838ea631f7cb776d838c444cf581542c17aebc (patch)
tree81172d77a8bff948e91db4ed10ec8611d637dc37 /util
parentb327e59bdaa58e8dd22078fa33c93bdd5c0de0a6 (diff)
parent87f1d03d8682a199d87f600792c5076cd1348d79 (diff)
Merge branch 'toaster'
Diffstat (limited to 'util')
-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