diff options
-rwxr-xr-x | urlinfo | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#!/bin/bash +# +# Retrieve basic URL info. +# + +# Parameters +BASENAME="`basename $0`" +URL="$1" + +# Dispatch +DESC="`torify curl --max-redirs 10 -L -s $URL | grep -i "<title>" | sed -n 's/.*<title>\(.*\)<\/title>.*/\1/ip;T;q' 2> /dev/null`" +echo "Title: $DESC" |