while read -r u; do echo -n "$u -> "; curl -sL "$u" | grep -o 'rel="canonical"[^>]*' | head -1; done < urls.txt