Solved

Patching problem

Posted on 2004-09-13
4
357 Views
Last Modified: 2010-04-20
Usually patch is done by:
  diff -Naur file1 file2 > patch.1
And to patch file2:
  patch < patch.1

Now let's assume that I want to patch file2 with the differences from file1. However all the initial differences of file2 I want to keep.
In other words I want to apply only '+' changes in patch.1 but not to apply '-'.

Is it possible ? And if yes, how can I do this...
0
Comment
Question by:dimitry
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Expert Comment

by:aadilfahad
ID: 12049331
It Is Possible And You Can Simply Read Out Each Information About This By That Weblink

www.linuxjalali.com/forum   in linux section
0
 
LVL 11

Author Comment

by:dimitry
ID: 12049390
Can you please be more specific. I didn't find any patching issue on this forum.
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 250 total points
ID: 12049748
What are you trying to do exactly?

Your commands would take the differences between file1 and file2, then
apply them to file1.

If you're trying to do a 3-way merge changes from one set of files into a third
then the command you should be using is merge...

see http://www.die.net/doc/linux/man/man1/merge.1.html
0
 
LVL 11

Author Comment

by:dimitry
ID: 12049855
Thanks Mysidia,
I wanted something else, but with merge I can achieve same result.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question