home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.24 / text0072.txt < prev    next >
Encoding:
Text File  |  1991-09-03  |  873 b   |  20 lines

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