tags:

views:

37

answers:

2

Consider the following example :

$ls
base.txt base-modified.txt
$diff base.txt base-modified.txt > diff.txt
$rm base-modified.txt
$

I want the base-modified.txt from base.txt and diff.txt... Can anyone suggest a way ?

A: 

man patch

Rob
+2  A: 

You can use patch.

cp base.txt base-modified.txt
patch base-modified.txt diff.txt
MiffTheFox