Bash - Follow a short-url to it's source

1
function traceurl() { if [[ -n $1 ]]; then curl --location --head $1; else echo 'Not a short URL'; fi }; traceurl http://goo.gl
    /pQehoM
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.