astrognome/data/geonames/geonames_process.awk

8 lines
142 B
Awk

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