Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!mips!ultra!marc From: marc@mercutio.ultra.com (Marc Kwiatkowski {Host Software-AIX}) Newsgroups: comp.unix.shell Subject: Re: cat, pipes, and filters Message-ID: <1991Jun1.011132.2349@ultra.com> Date: 1 Jun 91 01:11:32 GMT References: <1991May31.165446.1530@progress.com> Sender: marc@ultra.com (Marc Kwiatkowski {Host Software-AIX}) Organization: Ultra Network Technologies Lines: 16 In-Reply-To: root@progress.COM's message of 31 May 91 16:54:46 GMT In article <1991May31.165446.1530@progress.com> root@progress.COM (Root of all Evil) writes: [stuff about inability to redirect standard in and standard out to the same file omitted.] This problem and a good solution are discussed thoroughly in "The Unix Programming Environment, B.W. Kernighan and R. Pike, Prentice Hall, ISBN 0-13-937699-2." They provide a generalized bourne shell script that will work with any arbitrary command, and is fairly robust, called "overwrite" -- Marc P. Kwiatkowski Ultra Network Technologies Internet: marc@ultra.com 101 Daggett Drive uucp: ...!ames!ultra!marc San Jose, CA 95134 USA telephone: 408 922 0100 x249