Re: dircmp

From: Hactar (ebenONE_at_tampabay.ARE-ARE.com.unmunge)
Date: 06/07/04


Date: Mon, 07 Jun 2004 16:09:37 GMT

In article <3064b51d.0406061421.fe87941@posting.google.com>,
 <beliavsky@aol.com> wrote:
> Some Unix operating systems have the 'dircmp' command to compare
> directories, but it seems that SUSE Linux 9.0 Pro (kernel 2.4) does
> not. How can I download a binary of dircmp? Is there another command
> with similar functionality?
>
> What I want to do is
>
> (1) list all the file names present in one directory but not another

find dir1 -type f > file1
find dir2 -type f > file2
diff file1 file2

> (2) list file names found in two directories for which the file
> contents are different.

Some script involving find, "comm -12", and those two files you made in the
first part. Maybe "comm" won't recognize the lines if they're at different
offsets...

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
AQUARIUS:  There's travel in your future when your tongue freezes to the
back of a speeding bus.  Fill the void in your pathetic life by playing
Whack-a-Mole 17 hours a day.  -- Weird Al, _Your Horoscope for Today_


Relevant Pages

  • Re: dircmp
    ... How can I download a binary of dircmp? ... Is there another command ... Some script involving find, "comm -12", and those two files you made in the ...
    (comp.os.linux.misc)
  • dircmp
    ... Some Unix operating systems have the 'dircmp' command to compare ... How can I download a binary of dircmp? ... list file names found in two directories for which the file ...
    (comp.os.linux.misc)
  • dircmp
    ... Some Unix operating systems have the 'dircmp' command to compare ... How can I download a binary of dircmp? ... list file names found in two directories for which the file ...
    (comp.os.linux.questions)
  • Re: comm package issue
    ... I am trying to invoke commands on a remote machine using comm package ... The send command never returns. ...
    (comp.lang.tcl)
  • comm package issue
    ... I am trying to invoke commands on a remote machine using comm package ... The send command never returns. ...
    (comp.lang.tcl)