summaryrefslogtreecommitdiffstats
path: root/util/bin/google.suggest
blob: 9bde17dc0f56cd829d1be84284226b8e147e6842 (plain)
1
2
3
4
5
6
7
8
#! /bin/sh

uri="http://google.com/complete/search?output=json&q=$*"

curl -sS "$uri" | sed -n '
  s:^window.google.ac.h(\|)$::gp
'
echo