[vox-tech] binary equivalence of two directories

Rod Roark rod at sunsetsystems.com
Wed Mar 16 22:42:28 PST 2005


On Wednesday 16 March 2005 10:26 pm, Peter Jay Salzman wrote:
> What's the quick and dirty way of using md5sum or sha1sum to check the
> equivalence of the files residing in two directories?  I suppose I can whip
> up a Perl script to traverse the directories, but I'm wondering if there's a
> short one liner (or perhaps an already written utility) to do this.

How about:

$ diff -r dir1 dir2

-- Rod


More information about the vox-tech mailing list