How to create the original file from the diff, I am having one of the files and deleted the other unknowingly. Is there any tool to convert the diff output to ‘ed’ diff (diff -e output) format or patch output format?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have:
then this is simply a matter of applying the diff in the usual fashion:
This is just the normal use case for applying a diff.
If you have:
then you can you can simply apply the patch in reverse using
patch‘s-Roption: