home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!usc!cs.utexas.edu!torn!cunews!nrcnet0!bnrgate!bcars267!bcarh803!christo
- From: christo@bcarh803.BNR.CA (Mark Christopher)
- Subject: Re: Awk Variables
- Message-ID: <1992Aug21.150959.4280@bnr.ca>
- Sender: news@bnr.ca (usenet)
- Nntp-Posting-Host: bcarh803
- Reply-To: christo@bnr.ca
- Organization: Bell-Northern Research Ltd.
- References: <1992Aug10.003934.24269@jpradley.jpr.com> <510@alden.UUCP> <Bt6v2A.6CM@root.co.uk> <516@alden.UUCP>
- Date: Fri, 21 Aug 1992 15:09:59 GMT
- Lines: 24
-
- In article <516@alden.UUCP>, sgr@alden.UUCP (Stan Ryckman) writes:
- |>In article <Bt6v2A.6CM@root.co.uk> gwc@root.co.uk (Geoff Clare) writes:
- |>>In <510@alden.UUCP> sgr@alden.UUCP (Stan Ryckman) writes:
- |>>> Old awk's don't take var1=value1 type arguments.
- |>[stuff deleted]
- ...
- |>>Old awks DO take var=value arguments. I have never come across a version
- |>>of awk that did not.
- |>
- |>Uh-oh, my age is showing :-). I believe I tried var=value upon seeing
- |>it in a "new" awk book in 1987 or so, but it would not work (and was
- |>not in the man pages or manual) on an OS version from the early 1980's
- |>or so. (As I remember, the book described many "new" features in
- ...
-
- Ummm, I do believe Geoff is right on the money on this one. I have some
- awk scripts that I originally wrote back in '86 on v7 - and that WAS the
- old 'awk' and the scripts used the sym=val capabilities. And awk was not
- one of the things I added improvements to.
-
- But as Geoff said, you had to specify '-' or a filename after the var
- assignments. Newer versions are somewhat smarter.
- --
- Mark Christopher Bell-Northern Research christo@bnr.ca
-