1# Check links in tz tables. 2 3# Contributed by Paul Eggert. 4 5/^Link/ { used[$2] = 1 } 6/^Zone/ { defined[$2] = 1 } 7 8END { 9 status = 0 10 11 for (tz in used) { 12 if (!defined[tz]) { 13 printf "%s: Link to non-zone\n", tz 14 status = 1 15 } 16 } 17 18 exit status 19} 20