Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!cadre!pitt!darth!investor!rbp From: rbp@investor.UUCP (Bob Peirce) Newsgroups: net.unix Subject: Re: A question concerning diff Message-ID: <790@investor.UUCP> Date: Fri, 5-Sep-86 20:22:55 EDT Article-I.D.: investor.790 Posted: Fri Sep 5 20:22:55 1986 Date-Received: Sun, 7-Sep-86 20:22:46 EDT References: <194@wolf.UUCP> Organization: Cookson, Peirce & Co., Pittsburgh, PA Lines: 26 > Is there a program, command, anything, that will take two files > { > 1. An old text file > 2. A "diff" format file > } > and make the changes listed in #2 on #1 and create file #3, the new text file? > -- > Bill Wisner > ...ihnp4!jack!wolf!billw The Sys III manual for diff(1) claims that diff -e file1 file2 will produce "a script of a, c and d commands for the editor ed, which will recreate file2 from file1." I haven't tried it, but I assume something like the following might work. ed file1 < diffs > file 2 -- Bob Peirce, Pittsburgh, PA uucp: ...!{allegra, bellcore, cadre, idis} !pitt!darth!investor!rbp 412-471-5320 NOTE: Mail must be < 30K bytes/message