Re: dircmp
From: Hactar (ebenONE_at_tampabay.ARE-ARE.com.unmunge)
Date: 06/07/04
- Previous message: Peter Saffrey: "Laptop external monitor"
- In reply to: beliavsky_at_aol.com: "dircmp"
- Next in thread: Joe Beanfish: "Re: dircmp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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_
- Previous message: Peter Saffrey: "Laptop external monitor"
- In reply to: beliavsky_at_aol.com: "dircmp"
- Next in thread: Joe Beanfish: "Re: dircmp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|