From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joe LaCascio Newsgroups: gmane.os.tru64.managers Subject: diff/ed question Date: Thu, 08 Aug 2002 13:50:41 -0400 (EDT) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1028829006 13377 127.0.0.1 (8 Aug 2002 17:50:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2002 17:50:06 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17crQA-0003TN-00 for ; Thu, 08 Aug 2002 19:50:03 +0200 Original-Received: (qmail 450 invoked by uid 5); 8 Aug 2002 17:50:44 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 442 invoked from network); 8 Aug 2002 17:50:43 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (134.167.3.110) by 0 with SMTP; 8 Aug 2002 17:50:43 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H0J005J4DKJVG@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 08 Aug 2002 13:50:43 -0400 (EDT) Original-Received: from mail2.wheatonma.edu (mail2.wheatonma.edu [155.47.32.222]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H0J0074VDKIVQ@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 08 Aug 2002 13:50:42 -0400 (EDT) Original-Received: from acunix.wheatonma.edu (acunix.wheatonma.edu [155.47.32.225]) by mail2.wheatonma.edu (8.11.6/8.11.6) with ESMTP id g78HnO605628 for ; Thu, 08 Aug 2002 13:49:24 -0400 Original-Received: from localhost (jlacasci@localhost) by acunix.wheatonma.edu (8.11.6/8.11.6) with ESMTP id g78Hofa30321 for ; Thu, 08 Aug 2002 13:50:41 -0400 Original-To: tru64-unix-managers@ornl.gov X-Authentication-warning: acunix.wheatonma.edu: jlacasci owned process doing -bs Xref: main.gmane.org gmane.os.tru64.managers:1290 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1290 If I have two files (C programs) but one has several changes. Some new lines some deleted. Basically, we've modified a vendors code for our use, and each time they change there's we have to apply thier changes to ours. I want to automate a way of applying the mods to our version. Can someone help me with the correct diff command to do this. I believe it's something like diff -e old_file new_file > file.ed Then run some type of ed command to make the changes? Thanks, Joe