home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!uwm.edu!spool.mu.edu!news.cs.indiana.edu!noose.ecn.purdue.edu!mentor.cc.purdue.edu!sage.cc.purdue.edu!davisre
- From: davisre@sage.cc.purdue.edu (Robert Davis)
- Subject: Re: multiple sub's with 'sed'
- Message-ID: <C1BsCD.1sr@mentor.cc.purdue.edu>
- Sender: news@mentor.cc.purdue.edu (USENET News)
- Organization: Purdue University Computing Center
- References: <19891@mindlink.bc.ca> <C19uz1.43t@mentor.cc.purdue.edu> <1jrva6INNd3g@shelley.u.washington.edu>
- Date: Sat, 23 Jan 1993 21:14:36 GMT
- Lines: 32
-
- 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.
- >
-
- On the following systems
-
- NeXTSTEP 3.0
- SunOS 4.1.1
- Dynix (BSD 4.3 on a Sequent Symmetry)
- Ardent UNIX 2.1.1 (Sys V on an Ardent Titan)
-
- and according to
-
- "sed & awk" by Dale Dougherty (O'Reilly & Assoc., Inc.)
-
- sed's w command overwrites rather than appending. I guess Ultrix 4.2
- is nonstandard.
-
- >When I tried writing with 'w' to the same file that I was reading from
- >I got an empty file.
-
- Yeah, either way the original script would fail.
-
-
- Rob
- --
- | Robert Davis davis@sonata.cc.purdue.edu
- | "Look up, Hannah. Look up." NeXT Mail accepted
- --
-