passing command line arguments to awk

P. D. Guthrie pdg at ihdev.UUCP
Tue Jun 3 03:55:23 AEST 1986


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.'



More information about the Comp.unix mailing list