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 | 86275585b6a0afa6245d088ffda6010c2b3291e7 (patch) | |
tree | 1398cdea9c0fc9828d7e99dd12378155b08abd87 /util/bin | |
parent | a00c0be78ccd5d017dde07cdc664a3c77ef7a3e5 (diff) | |
parent | 183e94ba634bdb938003a5ccf52dcdfedf7c683c (diff) |
Merge branch 'toaster'
Diffstat (limited to 'util/bin')
-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 |