Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!cbnewsk!wsg From: wsg@cbnewsk.cb.att.com (wendy.grohol) Newsgroups: comp.unix.questions Subject: awk's ARGV and ARGC variables Summary: Need info on awk's ARGV and ARGC variables Keywords: awk variables Message-ID: <1991May2.194530.8150@cbnewsk.att.com> Date: 2 May 91 19:45:30 GMT Sender: wsg@cbnewsk.att.com (wendy.grohol) Distribution: usa Organization: AT&T Bell Laboratories Lines: 17 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