The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Recursive FTP -- here at last. Perderabo Shell Programming and Scripting 52 03-25-2009 12:15 PM
Check space utilization in recursive mode sureshg_sampat Shell Programming and Scripting 1 06-02-2008 02:56 PM
recursive rcp Nicol Shell Programming and Scripting 6 11-06-2003 11:52 AM
the file: MD5SUM samprax UNIX for Dummies Questions & Answers 1 07-05-2002 04:30 AM
What is md5sum??? solvman UNIX for Dummies Questions & Answers 1 09-25-2001 01:31 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-04-2008
blowFish@ubuntu blowFish@ubuntu is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 16
recursive md5sum check

so I have within my script a little md5sum check...


Code:
find . ! -type d -print0 | xargs -0 md5sum


And I want it to compare the generated values against a file so I'm trying...


Code:
find . ! -type d -print0 | xargs -0 md5sum -c files.md5

I generated this file by redirecting the output of the first version to 'files.md5' but the second version gives me this error...


Code:
usage: md5sum [-bv] [-c [file]] | [file...]
Generates or checks MD5 Message Digests
    -c  check message digests (default is generate)
    -v  verbose, print file names when checking
    -b  read files in binary mode
The input for -c should be the list of message digests and file names
that is printed on stdout by this program when it generates digests.

I wonder if I should be setting an array to equal the values and checking manually with a 'for x in @array' please let me know what you think.
 

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0