GET página da web usando apenas bash (sem CURL envolvido)

get() {
local address=${1##*//}
local host=${address%%/*}
local path="${address#$host}"
exec
3<> "/dev/tcp/$host/80"
echo
-e "GET $path HTTP/1.1nHost: $hostnConnection: closenn" >&3
cat
<&3 | sed "1,/^.$/d"
}

get http
://www.google.com/foobar