1753365 Members
5586 Online
108792 Solutions
New Discussion

comand diff

 
SOLVED
Go to solution
Dafnis Tejera
Occasional Contributor

comand diff

Hi,

Someone sendme a file patch.diff to resolve a problem with a source program.

How can I use a comand diff to patch a source with this file?
I probe with
diff -e patch.diff badsourse > newsource

but, didn't work.

help me please
1 REPLY 1
Ivan Ferreira
Honored Contributor
Solution

Re: comand diff

Diff files patches are normally applied with the patch command, like this:

patch -p1 < filename.diff

Ask to the person who sent to you the diff file for exact instructions and arguments.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?