tml, 10 months ago And the winner is: #Niue International Airport, #ICAO code: NIUE. Found using the list from https://datahub.io/core/airport-codes and this Perl code: #!/usr/bin/env perl -an -F, use strict; my $icao = $F[0]; next unless $icao =~ m/[A-Z][A-Z][A-Z][A-Z]/; foreach my $name(split(/ /,$F[2].' '.$F[7])) { if (uc($icao) eq uc($name)) { print $icao, ' ', $F[2], ' ', $F[7], "\n"; } } Ignoring two matches with bogus data: BOBS and SWYX. IATA check left as an exercise to readers.
And the winner is:
#Niue International Airport, #ICAO code: NIUE.
Found using the list from https://datahub.io/core/airport-codes and this Perl code:
#!/usr/bin/env perl -an -F,
use strict;
my $icao = $F[0];
next unless $icao =~ m/[A-Z][A-Z][A-Z][A-Z]/;
foreach my $name(split(/ /,$F[2].' '.$F[7])) { if (uc($icao) eq uc($name)) { print $icao, ' ', $F[2], ' ', $F[7], "\n"; } }
Ignoring two matches with bogus data: BOBS and SWYX.
IATA check left as an exercise to readers.