![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |