[TriLUG] dircmp availability

Tobias Crawley tcrawley at gmail.com
Wed Feb 9 17:17:10 EST 2005


Hi Bob,

diff -r dir1 dir2 

might do it for you (from the man page):

       If both from-file and to-file are  directories,  diff  compares  corre-
       sponding files in both directories, in alphabetical order; this compar-
       ison is not recursive unless the -r or  --recursive  option  is  given.
       diff  never compares the actual contents of a directory as if it were a
       file.  

Toby

On Wed, 9 Feb 2005 16:59:51 -0500, Bob Michael <rmichael2 at nc.rr.com> wrote:
>     In all Unix system 5 versions (AT&T, SunOS, Solaris, at least)
> there is a command "dircmp" which compares directories, including
> subdirectories.  Is there anything similar in any Linux version?
>     I tried porting the Solaris one (it is a shell), but it does not
> fully work.  It detects missing files OK, but fails to compare
> files that are in both.  I suspect that the "ls -l" listing is different
> and the shell does not parse it correctly.
>     But surely, there must be something in Linux.  Even WinDoz 98
> has WINDIFF in the Resource Kit.
> 
> Bob Michael
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc
> 


-- 
Tobias O. Crawley / tcrawley at gmail.com
"Arrogance is quoting yourself." - Tobias O. Crawley
"Ignorance is quoting others." - Aaron T. Dixon



More information about the TriLUG mailing list