What’s the diff?

Don’t mind me, just posting something on my blog for later retrieval, that is how to create patch in unified format. I always forget.

diff -uNr file1 file2 > patch

Don’t know why I can’t remember, it’s so simple; “u” for “unified”, “N” for “new file” and “r” for “recursive” (if needed). I always get stuck with capital Urn.. it’s not an Urn, it’s not an Urn. Now that I’ve forced myself to blog it, it’s ingrained in my brain!

3 Responses to “What’s the diff?”


Leave a Reply