CNAR15@VAXB.STRATH.AC.UK (12/22/87)
Hi I have obtained a lot of modifications to sources that have been broadcasted on the net. The majority of these modications have been published by means of a file created from the differences utility. I would like to take the original paragraph from the difference file and substitute the new paragraph in its place. Ideally I would like a program to take the original file, then take a "difference file" and produce the updated file that was used with the original file to produce the "difference file" in the first place. If this is not possible could you sugest a macro for EDT $or TPU that would select text in the normal way and then search for the first section of selected text and replace it with the second. Another point I would find of use is to be able to put a paragraph of text into the search buffer in screen mode and search for a paragraph. For instance use the "select key" then place the selected text in the search buffer. As far as I can see there is nothing of this kind in the orange books, and the only way is to write something in tpu. I realise that it would be faster mailing for the source code if it was only going to be used once, but as more and more difference files are posted on the net, it would be a useful program to have. Keywords: Edit, EDT, TPU, Search, Replace, Difference Yours Sincerly Andrew Kidd. ******************************************************************************** Andrew Kidd (Strathclyde University; Scotland; U.K.) Janet : cnar15@uk.ac.strath.vaxa (or) cnar15@uk.ac.strath.vaxb ([+Janet.000071000009] or [+Janet.000071000010]) Arpa : cnar15%uk.ac.strath.vaxa@ukacrl.bitnet (or) : cnar15%uk.ac.strath.vaxb@ukacrl.bitnet Bitnet/NetNorth/Earn: cnar15@vaxa.strath.ac.uk (or) cnar15%strath.vaxa@ac.uk (or) : cnar15@vaxb.strath.ac.uk (or) cnar15%strath.vaxb@ac.uk UUCP : cnar15%uk.ac.strath.vaxa@ukc (or) : cnar15%uk.ac.strath.vaxb@ukc ********************************************************************************
KARNEY%PPC.MFENET@NMFECC.ARPA (12/22/87)
>> Ideally I would like a program to take the original file, then take a >> "difference file" and produce the updated file that was used with the >> original file to produce the "difference file" in the first place. You can get diff to produce a machine readable difference file with diff/slp. The output can be used to run edit/sum. Thus at the site A, you might do $ diff/slp/output=.upd file.old .new and send file.upd to site B. At site B, you can then generate file.new with $ edit/sum/update/output=.new file.old Charles Karney Plasma Physics Laboratory Phone: +1 609 243 2607 Princeton University MFEnet: Karney@PPC.MFEnet PO Box 451 ARPAnet: Karney%PPC.MFEnet@NMFECC.ARPA Princeton, NJ 08544-0451 Bitnet: Karney%PPC.MFEnet@ANLVMS.Bitnet CC: info-vax@KL.SRI.COM cnar15%uk.ac.strath.vaxa@ukacrl.bitnet KARNEY