home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10264 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.6 KB  |  38 lines

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