2

If I create a non-unified diff like so

diff original.txt edited.txt > 1.patch cp original.txt test.txt 

I suppose that the first filename should be the untouched/original file, and the second how the original should look after the patch?

How do I then apply the patch to test.txt?

1 Answer 1

5

It is as simple as

patch test.txt 1.patch 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.