[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: md5sum lots of files



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 directories and do this to a lot of files. I've looked around a lot, and finding nothing I'm about to start writing my own script, but I thought I'd ask here first. It just seems like something that there would be a way to do already, and I'm just missing it.

cd /source/dir
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

--Dave Carrigan
Seattle, WA, USA
dave@rudedog.org | http://www.rudeog.org





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.

Thanks,
-GM



Reply to: