home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: henry@zoo.toronto.edu (Henry Spencer)
-
- In article <1991Aug3.002829.527@uunet.uu.net> rpinder@phad.hsc.usc.edu (Rich Pinder) writes:
- >However, the output from the print statement seems to leave off the
- >field seperators on lines that were altered, but puts them in
- >correctly on others. Is this a bug with my version (SCO's 3.2)?
-
- No. The -F option sets the FS variable, but not the OFS variable,
- which is what is used for reconstructing $0 when a field is modified.
- The output you are getting is correct. Adding a `BEGIN { OFS = FS }'
- to the awk program will get you what you're after.
- --
- Arthritic bureaucracies don't tame new | Henry Spencer @ U of Toronto Zoology
- frontiers. -Paul A. Gigot, WSJ, on NASA | henry@zoo.toronto.edu utzoo!henry
-
- [ Also noted by William Lewis Jr. (lewis@tramp.Colorado.edu) -- mod ]
-
- Volume-Number: Volume 24, Number 73
-
-