home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / shell / 5489 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!att!news.cs.indiana.edu!noose.ecn.purdue.edu!mentor.cc.purdue.edu!sage.cc.purdue.edu!davisre
  3. From: davisre@sage.cc.purdue.edu (Robert Davis)
  4. Subject: Re: multiple sub's with 'sed'
  5. Message-ID: <C1C7vK.7y6@mentor.cc.purdue.edu>
  6. Sender: news@mentor.cc.purdue.edu (USENET News)
  7. Organization: Purdue University Computing Center
  8. References: <1jrva6INNd3g@shelley.u.washington.edu> <C1BsCD.1sr@mentor.cc.purdue.edu> <1jsl5oINN4da@shelley.u.washington.edu>
  9. Date: Sun, 24 Jan 1993 02:50:08 GMT
  10. Lines: 23
  11.  
  12. In article <1jsl5oINN4da@shelley.u.washington.edu> adrian@stein.u.washington.edu (Adrian Mariano) writes:
  13. >
  14. >I think Ultrix is just like everyone else.  To clear things up, here's
  15. >the sed man page section on 'w'.  This is from the Ultrix 4.2 manual,
  16. >but the Dynix manual is very similar:
  17. >
  18. >     (2)w wfile
  19. >             Write.  Append the pattern space to wfile.
  20. >
  21. >The use of "append" is somewhat misleading.  The actual behavior is to
  22. >overwrite the file that existed before the sed invocation, and then
  23. >append thereafter within the same sed program.  
  24.  
  25.     Exactly.  I thought you were saying that w always appended,
  26. even to a file that existed before sed was invoked.  I guess I was
  27. vague as well.
  28.  
  29.  
  30. Rob
  31. -- 
  32. | Robert Davis                                    davis@sonata.cc.purdue.edu
  33. | "Look up, Hannah.  Look up."                            NeXT Mail accepted
  34. --
  35.