[comp.unix.questions] awk's ARGV and ARGC variables

wsg@cbnewsk.cb.att.com (wendy.grohol) (05/03/91)

A co-worker was trying to use a program that has the ARGV and ARGC
variables in an awk program which wouldn't work.

I tried examples from the Awk Programming Language book and some
awk documents I have that used ARGV and/or ARGC and about all
they do is produce newlines.

Can ARGV and ARGC be used for anything? Can someone send me even
a simple example that works?

In the documentation I have, the information on those variables
is short and doesn't go into any detail.

Any useful information or working examples are appreciated.

					Thanks,
					Wendy