home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!uwm.edu!ogicse!news.u.washington.edu!stein.u.washington.edu!adrian
- From: adrian@stein.u.washington.edu (Adrian Mariano)
- Newsgroups: comp.unix.shell
- Subject: Re: multiple sub's with 'sed'
- Message-ID: <1jsl5oINN4da@shelley.u.washington.edu>
- Date: 23 Jan 93 23:42:48 GMT
- Article-I.D.: shelley.1jsl5oINN4da
- References: <19891@mindlink.bc.ca> <C19uz1.43t@mentor.cc.purdue.edu> <1jrva6INNd3g@shelley.u.washington.edu> <C1BsCD.1sr@mentor.cc.purdue.edu>
- Organization: University of Washington
- Lines: 24
- NNTP-Posting-Host: stein.u.washington.edu
-
- In <C1BsCD.1sr@mentor.cc.purdue.edu> davisre@sage.cc.purdue.edu (Robert Davis) writes:
-
- >In article <1jrva6INNd3g@shelley.u.washington.edu> adrian@stein.u.washington.edu (Adrian Mariano) writes:
- >>
- >>This is false (at least for my version of sed under Ultrix 4.2). As
- >>documented in my man page and as revealed by actuals tests, the 'w'
- >>command appends to the specified file.
- >>
-
- [ supporting documentation deleted ]
-
- >sed's w command overwrites rather than appending. I guess Ultrix 4.2
- >is nonstandard.
-
- I think Ultrix is just like everyone else. To clear things up, here's
- the sed man page section on 'w'. This is from the Ultrix 4.2 manual,
- but the Dynix manual is very similar:
-
- (2)w wfile
- Write. Append the pattern space to wfile.
-
- The use of "append" is somewhat misleading. The actual behavior is to
- overwrite the file that existed before the sed invocation, and then
- append thereafter within the same sed program.
-