astrognome/data/geonames/geonames_process.awk
Gergely Polonkai 3bde2d68c0 Fix geonames_process.awk
It missed several big towns because of a wrong condition
2014-09-21 12:40:34 +02:00

8 lines
172 B
Awk

BEGIN {
FS="\t"
}
{
if ($7 != "P" || ($8 != "PPL" && $8 != "PPLC" && substr($8, 0, 4) != "PPLA") || $15 < 1000) next
print $9 FS $2 FS $5 FS $6 FS $16 FS $18
}