Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Update code files in /usr/share/misc' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Update code files in /usr/share/misc
Authored by: MaxMouseroom on Aug 12, '03 04:31:08PM
Sorry, the code was still garbled by Geeklog. Let me try it again. Put this all on one line:

sudo curl -s http://www.mapping.com/airportcodes.html | 
awk '/A00/,/9Z9/' | perl -ne '$/=";"; s#  ?##g; s#\n##g; 
s#<.><..>.*$##i; s#<.*?>##g; s#^\s+##; s#^\s*$##; s#\s+#:#;
print "$_\n"' > /usr/share/misc/airport
[\code]


[ Reply to This | # ]