result_file.txt "/>

cat file.txt | grep -o -P "(//([^/?#]*))?" | awk '{sub("//","")}1' | uniq >result_file.txt