Re: Recursive diff?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Ashley M. Kirchner wrote:
> What's the best way to run diff against two folders, comparing every
> single file in each one?

Well, "best way" is very subjective. :)

I think you'll find "diff -uNr /path1 /path2" will work reasonably

You can omit the -N and diff won't show you the full file contents for
files in one path but not in the other (you'll just see a line like
"file foo not in bar"). 

You may also want to use some of the options to suppress whitespace
differences from being displayed (-wbB is a common combination).

Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL:
Procrastination is the art of keeping up with yesterday.
    -- Don Marquis

Attachment: pgp1e7FP4M5Fv.pgp
Description: PGP signature

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux