view bin/define @ 5967:9f67418e5043

<b_jonas> ` f=bin/w\xc3\xa4lc\xc3\xa5m\xc3\xa4; >"$f" echo $\'/bin/sh\\nwelcome | sed "s/E/\xc3\x84/g;s/O/\xc3\x85/g;s/e/\xc3\xa4/g;s/o/\xc3\xa5/g"\'; chmod a+x "$f"
author HackBot
date Thu, 10 Sep 2015 11:15:33 +0000
parents e037173e0012
children
line wrap: on
line source

#!/bin/bash
if [ ! "$1" ]
then
    echo 'Define 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=define:'"$QUERY" |
    grep -A 3 'Definitions of' |
    head -n 4 | tail -n 3