Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!columbia!caip!princeton!allegra!ulysses!mhuxr!mhuxn!ihnp4!ihdev!pdg From: pdg@ihdev.UUCP (P. D. Guthrie) Newsgroups: net.unix Subject: Re: passing command line arguments to awk Message-ID: <651@ihdev.UUCP> Date: Mon, 2-Jun-86 13:55:23 EDT Article-I.D.: ihdev.651 Posted: Mon Jun 2 13:55:23 1986 Date-Received: Wed, 4-Jun-86 07:20:46 EDT References: <198@comp.lancs.ac.uk> <1261@utcs.uucp> Reply-To: pdg@ihdev.UUCP (55224-P. D. Guthrie) Distribution: net Organization: AT&T Bell Laboratories Lines: 8 Newer versions of awk have direct command line argument access through the pseudo-variables ARGC and ARGV. ARGV[0] is naturally the programme name as invoked. If stdin is used for input, '-' is added as the last argument. -- Paul Guthrie `See the happy moron, he doesn't give a damn. ihnp4!ihdev!pdg I wish I were a moron. My God! Perhaps I am.'