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