Solved

Comparing Directory Structures/Files (perferably with a checksum)

Posted on 2003-11-20
2
374 Views
Last Modified: 2010-04-21
I have to different directories that I would like to compar bit by bit, byte by byte......
I would like to compare them using some kind of check sum preferably. and to top this
all off its too much to do manualy and it needs to be done regularly with minimal effort preferd....

Thanks...
0
Comment
Question by:EHart7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
shivsa earned 180 total points
ID: 9795364
GNU has Diffutils.
This is the manual link. I think it may solve your purpose.

http://tuxisland.org/download/documentations/diffutils/diff.pdf.
0
 
LVL 20

Assisted Solution

by:Gns
Gns earned 70 total points
ID: 9798024
As shivsa says, diff is probably the easy route here... something like
diff -r --brief dir1 dir2
would perhaps be enough? This will just report whether there are any differences between the directories (files only in one place or the other, if the files differ... If they match, this is "silent").
I use this in a script to check some wget mirror data for ... "new arivals" (it's for antivirus updates).

One could of course do something interresting with find and md5sum, but it would perhaps be a bit .... overkill.

-- Glenn
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question