astrognome/data/geonames/geonames_process.awk
Gergely POLONKAI (W00d5t0ck) 12d2e57c55 geodata.xml is now generated correctly
Data is downloaded from geonames.org, and processed with an AWK and a Perl
script. The result is the part of the distribution, so the average user
(or a packager) doesn't have to download that much of data.
2013-09-09 22:56:09 +02:00

8 lines
124 B
Awk

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