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

Re: md5sum lots of files



 <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 know which file the error is in.

Also, he wanted to recurse through the directories.

'find -exec' will do that, but my suggestion is a lot simpler for somebody who
doesn't want to learn about sticking UNIX commands together.



Reply to: