diff options
author | tv <tv@also> | 2011-07-22 15:25:04 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-07-22 15:25:04 +0200 |
commit | 8b225805bcffc476f8c7fce4c8391e8035ee1c9c (patch) | |
tree | bddaee871608c0985cd1fb4781bc9e5140ff05c6 /util/bin/google.suggest | |
parent | 2719c0b478d9a0ff780acbde95489ff6995ae884 (diff) | |
parent | da7814f9fd0678823ec3107a8843c97f91714bf3 (diff) |
Merge branch 'toaster'
Diffstat (limited to 'util/bin/google.suggest')
-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 |