Re: md5sum lots of files

2006-10-22 Thread Tim Post
Since MD5 can be rather resource intense, you may find the following utility of some use in determining which files should be processed. http://dev1.netkinetics.net/filetime/filetime.c download, then gcc -o /usr/bin/filetime strip /usr/bin/filetime It returns a simple unix stamp of the last

Re: md5sum lots of files

2006-10-21 Thread Grok Mogger
Grok Mogger wrote: I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse through the directories and do this to a lot of files. I've

Re: md5sum lots of files

2006-10-21 Thread Chris Walters
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, Grok Mogger wrote: Allan Wind wrote: On 2006-10-20T07:33:46-0700, Dave Carrigan wrote: find . -type f -print0 | xargs -0 md5sum /tmp/source.sums cd /dest/dir find . -type f -print0 | xargs -0 md5sum /tmp/dest.sums diff -u

md5sum lots of files

2006-10-20 Thread Grok Mogger
I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse through the directories and do this to a lot of files. I've looked around a lot, and

Re: md5sum lots of files

2006-10-20 Thread Dave Carrigan
On Oct 20, 2006, at 6:58 AM, Grok Mogger wrote: I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse through the directories and do

Re: md5sum lots of files

2006-10-20 Thread Allan Wind
On 2006-10-20T07:33:46-0700, Dave Carrigan wrote: find . -type f -print0 | xargs -0 md5sum /tmp/source.sums cd /dest/dir find . -type f -print0 | xargs -0 md5sum /tmp/dest.sums diff -u /tmp/source.sums /tmp/dest.sums Might need a sort in there before redirecting to files. /Allan

Re: md5sum lots of files

2006-10-20 Thread Grok Mogger
Dave Carrigan wrote: On Oct 20, 2006, at 6:58 AM, Grok Mogger wrote: I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse through the

Re: md5sum lots of files

2006-10-20 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/20/06 08:58, Grok Mogger wrote: I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse

Re: md5sum lots of files

2006-10-20 Thread Grok Mogger
Allan Wind wrote: On 2006-10-20T07:33:46-0700, Dave Carrigan wrote: find . -type f -print0 | xargs -0 md5sum /tmp/source.sums cd /dest/dir find . -type f -print0 | xargs -0 md5sum /tmp/dest.sums diff -u /tmp/source.sums /tmp/dest.sums Might need a sort in there before redirecting to files.

Re: md5sum lots of files

2006-10-20 Thread David Hart
On Fri, Oct 20, 2006 at 11:10:12AM -0400, Grok Mogger wrote: Allan Wind wrote: On 2006-10-20T07:33:46-0700, Dave Carrigan wrote: find . -type f -print0 | xargs -0 md5sum /tmp/source.sums cd /dest/dir find . -type f -print0 | xargs -0 md5sum /tmp/dest.sums diff -u /tmp/source.sums

Re: md5sum lots of files

2006-10-20 Thread Kamaraju Kusumanchi
On Friday 20 October 2006 11:07, Grok Mogger wrote: Thanks, I thought something like that was probably doable, but my bash skills are not at the point where I could have figured it out on my own. Just want to clarify something here. find, xargs, sort, grep etc., are not specific to bash.

Re: md5sum lots of files

2006-10-20 Thread Dave Carrigan
On Oct 20, 2006, at 8:19 AM, David Hart wrote: On Fri, Oct 20, 2006 at 11:10:12AM -0400, Grok Mogger wrote: How should I go about sorting it? Pipe it though 'sort'. find . -type f -print0 | sort | xargs -0 md5sum /tmp/source.sums Actually that won't work because print0 is not

Re: md5sum lots of files

2006-10-20 Thread Chris Moore
Grok Mogger linuximp at gmail.com writes: I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse through the directories and do this to a lot of files. There's a package called 'cfv' which can do exactly that.

Re: md5sum lots of files

2006-10-20 Thread Mike McCarty
Grok Mogger wrote: I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse through the directories and do this to a lot of files. I've

Re: md5sum lots of files

2006-10-20 Thread dtutty
On Fri, Oct 20, 2006 at 10:07:29PM +, Chris Moore wrote: I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse through the directories and do this to a lot of files. Couldn't you use cat and shasum:

Re: md5sum lots of files

2006-10-20 Thread dtutty
On Fri, Oct 20, 2006 at 05:27:23PM -0500, Mike McCarty wrote: Grok Mogger wrote: I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse

Re: md5sum lots of files

2006-10-20 Thread Chris Moore
dtutty at porchlight.ca writes: Couldn't you use cat and shasum: in the directories of interest: cat * | sha1sum SHASUMS then compare the SHASUMS files? 'cat *' will concatenate all the files into one big lump, so if there's any error, you won't

RE: md5sum lots of files

2006-10-20 Thread David Christensen
Grok Mogger wrote: I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I have the same need, and wrote a Perl script md5sums to generate and check *.md5 files recursively for

Re: md5sum lots of files

2006-10-20 Thread Marty
Grok Mogger wrote: I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse through the directories and do this to a lot of files. I've