Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 29th, 2011, 07:00 AM
mkalas mkalas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Posts: 1 mkalas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 47 sec
Reputation Power: 0
Unhappy Perl script to create an MD5 hash of each file in the directory

It needs to be written in Perl and take up to 3 parameters.

compareDirectories.pl -if [Index File, path and filename] -sd [Source Directory] -dd [Destination Directory]

The purpose of the script will be to create an MD5 hash of each file in the source directory and then compare it to the MD5 hash of each file in the destination directory.

To build this, I would suggest recursing through the source directory to build an index file that maps each fullpath filename to an MD5 hash. After that, take the index file, recurse through the destination directory and taken an MD5 hash of each file and compare it to the equivalent file in the index file. The script needs to be able to support not having a source or destination directory, i.e. if just a source directory is specified, create the index file and quit, if just the destination directory is specified then just use the specified index file and do the compare. Basically cut the program into two distinct functions that can be called all at once or separately. Please build it to run under Linux

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Perl script to create an MD5 hash of each file in the directory

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap