Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 17 lines (15 sloc) 372 Bytes
#!/usr/bin/perl -w
open(XML, "xsltproc extract_locs.xsl ../mdx/uk/collected.xml|") || die "could not open input file";
while (<XML>) {
chop;
if (/^https:\/\/([^\/:]+)(:\d+)?(\/|$)/) {
my $location = $1;
$locations{$location} = 1;
}
}
close XML;
foreach $loc (sort keys %locations) {
if ($loc =~ /([^:]+)/) {
print "$1\n";
}
}