summaryrefslogtreecommitdiff
path: root/dot/local/bin/google
blob: 0f6f1830d114785dac26c44dfbc4417603e6e023 (plain)
1
2
3
4
5
#!/usr/bin/perl -w

$_ = join ' ', map { m/ / ? qq<"$_"> : $_ } @ARGV;
s/([^a-zA-Z0-9])/sprintf "%%%x", ord $1/ge;
exec qw(w3m http://www.google.com/search?q=$_)