Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!ihnp4!inuxc!pur-ee!uiucdcs!snail!carroll From: carroll@snail.CS.UIUC.EDU Newsgroups: net.unix Subject: Re: passing command line arguments Message-ID: <3800002@snail> Date: Mon, 22-Sep-86 08:41:00 EDT Article-I.D.: snail.3800002 Posted: Mon Sep 22 08:41:00 1986 Date-Received: Tue, 23-Sep-86 23:08:51 EDT References: <753@moscom.UUCP> Lines: 8 Nf-ID: #R:moscom.UUCP:753:snail:3800002:000:422 Nf-From: snail.CS.UIUC.EDU!carroll Sep 22 07:41:00 1986 On System V, I could pass things to awk by putting "var=value" stuff on the command line. For example, I wanted awk to return everyone in a certain group in a script, and the group was not known to the script: awk -F: '$4 == group { print $1 }' group=$group /etc/passwd where $group was a shell variable. This is supposed to work under 4.2BSD also (according to the manual), but I seem to remember having trouble with it.