Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to diff two very large files, far too large for diff to handle. rdiff can produce a delta file for them in a few seconds, but I'd like to have a real diff as output. Is there an existing way of converting an rdiff delta to a regular diff?

share|improve this question

I don't think this is (easily) possible. rdiff parses the files as chunks of bytes, generating a signature for fixed-size blocks of bytes. The new file is then compared to those signatures. The delta file contains all different blocks, which do not necessarily match lines in the original or compared file.

For instance, an original:


compared with:


could produce a delta:


Regular diff files usually contain all changed lines. The rdiff delta file will probably only a part of some changed lines, and a lot of unchanged lines as well. You would have to parse the file(s) again to determine the actual changed lines.

For more information, see the rdiff documentation or

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.