From 4711007535169368dbef79fa1d97919305ab88d4 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 22 Jul 2011 11:48:08 +0200 Subject: util google.suggest: initial import --- util/bin/google.suggest | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 util/bin/google.suggest (limited to 'util/bin') 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 -- cgit v1.2.3