Bash obtenha domínio do url

echo http://example.com/index.php | awk -F[/:] '{print $4}'
steamboatid