cat, pipes, and filters

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Mon Jun 3 00:03:11 AEST 1991


In article <13798 at dog.ee.lbl.gov> torek at 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



More information about the Comp.unix.shell mailing list