#!/bin/sh -e

title="$(curl --silent --location "$1" | grep "<title>" \
  | sed -n 's/.*<title>\(.*\)<\/title>.*/\1/ip;T;q')"
echo "${title}"
