The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Formatting the output from diff ragavhere Shell Programming and Scripting 9 05-07-2008 01:40 AM
Diff output, unwanted characters scanner248 UNIX for Dummies Questions & Answers 5 10-17-2007 01:23 PM
Is there a way to limit DIFF output bobk544 Shell Programming and Scripting 2 06-08-2007 12:54 PM
diff output paulp UNIX for Dummies Questions & Answers 3 04-13-2005 11:27 PM
diff 2 files; output diff's to 3rd file blt123 Shell Programming and Scripting 2 05-28-2002 08:29 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-14-2006
Registered User
 

Join Date: May 2005
Posts: 48
Applying diff output to create new script

I believe I read somewhere that you can do a diff of two ksh scripts and use the output to create a new script with the differences.

Could someone please show me the command(s) I'd need to use to get this accomplished? Or perhaps point me to a thread that explains this in detail.

Thanks in advance for your help.
Reply With Quote
Forum Sponsor
  #2  
Old 04-14-2006
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,476
The typical steps of patch creation and application is

diff -Nau a.txt b.txt > a_b_delta.patch
Ship this patch to some other destination with a.txt
cd /destination/dir
patch -p0 < a_b_delta.patch


These are the steps I usually take. Of course variations are possible.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0