![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages 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 04:40 AM |
| Diff output, unwanted characters | scanner248 | UNIX for Dummies Questions & Answers | 5 | 10-17-2007 04:23 PM |
| Is there a way to limit DIFF output | bobk544 | Shell Programming and Scripting | 2 | 06-08-2007 03:54 PM |
| diff output | paulp | UNIX for Dummies Questions & Answers | 3 | 04-14-2005 02:27 AM |
| diff 2 files; output diff's to 3rd file | blt123 | Shell Programming and Scripting | 2 | 05-28-2002 11:29 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|