Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!psuvax1!hsdndev!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.shell Subject: Re: cat, pipes, and filters Message-ID: <24071:Jun214:03:1191@kramden.acf.nyu.edu> Date: 2 Jun 91 14:03:11 GMT References: <1991May31.165446.1530@progress.com> <16438@darkstar.ucsc.edu> <13798@dog.ee.lbl.gov> Organization: IR Lines: 9 In article <13798@dog.ee.lbl.gov> torek@elf.ee.lbl.gov (Chris Torek) writes: [ why cat foo | blah | tee foo involves race conditions ] More to the point, if you want to have blah read foo and write its output to a new copy of foo, do something like this: ( rm foo; blah > foo ) < foo ---Dan