1. Try changing the situation so the generated file will be right away what
you want rather than editing.
Patch file is not a rocket science though, so there's a chance you can edit
it nicely.
2. Always take care the directory level when you apply the patch vs the
level at the generation of the patch.
Also take a look at patch, which is a wrapper over diff.


On Mon, Sep 21, 2015 at 5:26 PM, Paul Boniol <[email protected]> wrote:

> I rarely need to do a diff/patch.. but now I do.  I should have Googled
> first or tried a small amount...
>
> If I did
> diff *-r   *old-file-dir   new-file-dir > mydiff
>
> Edited mydiff to only contain just changes I want applied to old-file-dir
> files.  Is there any hope of using patch to apply the differences?
>
> Patch says "Only garbage was found in the patch input.".
>
> I now see I should have added more flags to the diff... but after a few
> hours of working to get just the changes I want.
>
> Thank you!
>
> --
> --
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to