[G4] Comparing Folder contents

John Haffner jhaffner at merithr.com
Thu Jul 3 10:35:11 PDT 2003


Hi David,

You can use the diff command with two directory names (folders) as your 
arguments, as in:

diff Widgets OlderWidgets

You'll get a listing of files that are only in one directory or the 
other, and of files that are in both. It will even search recursively 
if you ask. More options available under man diff.


I would imagine you could pipe the output to a file, sorting it as you 
go...

Best Regards,

John Haffner

On Thursday, July 3, 2003, at 05:21  AM, Wilkin, Wayne (Mass) wrote:

>  You can do an ls -la on each directory. this will give you a list of 
> all
> files even hidden ones by using the terminal..
>
> -----Original Message-----
> From: David DelMonte
>

> Forgive the posting to multiple lists, but is there any way in OS/X (or
> through terminal) to compare the contents of two folders?
>
> Thanks
>
> David



More information about the G4 mailing list