Mercurial > repo
view bin/google @ 6923:a66d8f61b2a7
<b_jonas> slashlearn one ring/One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them
author | HackBot |
---|---|
date | Sun, 21 Feb 2016 12:46:48 +0000 |
parents | e037173e0012 |
children |
line wrap: on
line source
#!/bin/bash if [ ! "$1" ] then echo 'Google what?' exit 1 fi QUERY=`echo -n "$1" | od -t x1 -A n -w1000 | tr " " %` lynx --cfg=/dev/null --lss=/dev/null \ --dump --width=1000 'http://google.com/search?q='"$QUERY" | grep -A 4 'Search Results' | tail -n 2