diff options
author | tv <tv@also> | 2011-07-22 11:48:08 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-07-22 11:48:08 +0200 |
commit | 1c21514eae2bd9aafd700172e0054d63ec31ad96 (patch) | |
tree | ab21f2d305337510aa6e7e2b9814d29c3814b1c3 /util | |
parent | 7c1a4ff836c09e042bbe0d9070986820d3c33c9e (diff) |
util google.suggest: initial import
Diffstat (limited to 'util')
-rwxr-xr-x | util/bin/google.suggest | 8 |
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 |