cat, pipes, and filters

Marc Kwiatkowski {Host Software-AIX} marc at mercutio.ultra.com
Sat Jun 1 11:11:32 AEST 1991


In article <1991May31.165446.1530 at progress.com> root at 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 at ultra.com		101 Daggett Drive
        uucp: ...!ames!ultra!marc		San Jose, CA 95134 USA
        telephone: 408 922 0100 x249



More information about the Comp.unix.shell mailing list