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

Re: md5sum lots of files



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 /tmp/dest.sums
> >
> >Might need a sort in there before redirecting to files.
> >
> >
> >/Allan
> 
> How should I go about sorting it?

Pipe it though 'sort'.

  find . -type f -print0 | sort | xargs -0 md5sum > /tmp/source.sums

-- 
David Hart <debian@tonix.org>



Reply to: