Compare two texts line by line, copy a unified diff, and clean, sort or deduplicate both sides locally.