![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Splitting input files into multiple files through AWK command | arund_01 | Shell Programming and Scripting | 3 | 05-13-2008 06:17 AM |
| Find duplicates from multuple files with 2 diff types of files | ricky007 | Shell Programming and Scripting | 2 | 03-04-2008 10:46 AM |
| unzip particular gzip files among the normal data files | thepurple | Shell Programming and Scripting | 4 | 11-30-2007 08:17 AM |
| when I try to run rm on multiple files I have problem to delete files with space | umen | UNIX for Dummies Questions & Answers | 1 | 09-20-2005 12:20 AM |
| text files, ASCII files, binary files and ftp transfers | Perderabo | Answers to Frequently Asked Questions | 0 | 04-08-2004 01:25 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
patchign c files
not sure in what form my question can be put as best
my question is i got three dir with many c files. 2 dirs are the source taken from a website where 1 is the old one and 2 is the new one. the 3 dir is the dir where i put my changed c code in. now i want to patch the diff file of dir 1 and 2 to dir 3. i can be wrong in makeing the diff like diff 1 2 >cupdate and then i try todo patch 3 cupdate and that did go wrong. i hope i am clear enough |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
This should work... although the patch process may require manual intervention if your changes in directory 3 are significant enough to disrupt the automated merging.
$ diff -ru 1/ 2/ > patchfile $ cd 3/ $ patch -p1 < ../patchfile |
||||
| Google The UNIX and Linux Forums |