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

Re: md5sum lots of files




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 line-oriented. Instead, you should sort the output:

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

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




Attachment: PGP.sig
Description: This is a digitally signed message part


Reply to: