On Tue, 8 May 2001, Joe Abley wrote:
On Wed, May 09, 2001 at 09:51:09AM +1200, Juha Saarinen wrote:
:: ftp -o - ftp://ftp.apnic.net/pub/apnic/dbase/data/apnic.an.gz | \ :: gzip -cd | awk '/^\*an: / { an = $2; } /^\*aa: / { aa = $2; } \ :: /NZ/ { print an, aa; }' | \ :: sort | uniq
ftp -o - ftp://ftp.apnic.net/pub/apnic/dbase/data/apnic.a
gzip -cd | awk '/^\*an: / { an = $2; } /^\*aa: / { aa = $2; } \ /NZ/ { print an, aa; }' | \ sort | uniq
ftp: o: unknown option Usage: ftp [-v] [-d] [-i] [-n] [-g] [-k realm] [-f] [-x] [-u] [-t] [host]
gzip: stdin: unexpected end of file
Typical... I don't have the -o option in FreeBSD either. What's it supposed to do?
output to the named file (or stdout, with "-").
wget has a similar option, the following works.. wget -O - ftp://ftp.apnic. Anyway the output I get is: AS10022 DSLAK-AS-AP AS10110 AS-MITNZ-AP AS17410 AS-NZDG-AP AS17412 WALKER-NZ-AP AS17427 MORENET-AP AS17472 BNZ-NZ AS17646 WAVE-NZ-AS-AP AS17649 DMZGLOBAL-AP AS17656 TRANZPEER-NZ-AP AS17664 CYBER-AP AS17705 INSPIRENET-AS-AP AS17746 ORCONINTERNET-NZ-AP AS4648 NZIX-2 AS4665 AS-YONSEI-AP AS4763 TELSTRANZ-AS AS4768 CLIX-NZ AS4769 NZNCC-BLOCK AS4770 ASIAONLINENZ-AS-AP AS4771 NZTELECOM AS4805 GLOBAL-IP-AUS-AP AS7657 TIG-US-PAS-AP AS7714 NETLINK-NZ-AS-AP AS9220 INFONET-AU-AP AS9224 SECURENET-AP AS9233 AS-EVENTURES-AP AS9245 RADIONET-NZ-AP AS9248 APACHE-AP AS9303 KCCS-AS-AP AS9325 XTRA-AS AS9338 NATLIB-NZ-AS-AP AS9343 ACTRIX-NZ-AS-AP AS9344 VOYAGER-NZ-AS AS9345 PARADISE-AS AS9389 HEALEY-AS-AP AS9431 AKUNI-NZ AS9432 CANTERBURY-AS AS9433 MASSEY-AS AS9436 GLOBENET-AS AS9439 WIX-CITYLINK-NZ-AP AS9445 AS-SATURN-NZ AS9469 AS-TERABYTE-NZ-AP AS9470 AS-COMPASS-NZ-AP AS9495 CLEARVIEW-AS AS9503 COMNET-AS AS9511 WILSONHORTON-AS-AP AS9559 PLAINCOM-NZ AS9560 APE-NZ AS9564 ANZ-BANK-AP AS9727 AS-MERCURY-NZ AS9731 SAFETYNET-AS-AP AS9736 AS-DOMAINZ-NZ AS9750 FCLNZ-AP AS9790 ATTICA-NZ-AP AS9872 ITNET-NZ-AS-AP AS9887 THEWEB-AP AS9889 AS-WEBINTERNET-NZ-AP AS9896 PARADISE-AP AS9897 JSR-AP AS9898 ESNTF-AP AS9901 TELSTRA-NZTRANSIT-AS AS9941 AS-AARIA-AP -- Simon Lyall. | Newsmaster | Work: simon.lyall(a)ihug.co.nz Senior Network/System Admin | Postmaster | Home: simon(a)darkmere.gen.nz ihug, Auckland, NZ | Asst Doorman | Web: http://www.darkmere.gen.nz --------- To unsubscribe from nznog, send email to majordomo(a)list.waikato.ac.nz where the body of your message reads: unsubscribe nznog