expandurl () { [[ -z "$1" ]] && echo "Usage: expandurl " && return 1; curl -s -IL "$1" | awk '/[Ll]ocation/ { print $2 }' }