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

Re: how to write a script that recursively check files in a directory with md5sum



On Thu, Jul 15, 2004 at 06:06:26AM +0800, John Summerfield wrote:
> >
> >find ~ -type f -exec cat {} \;
> > 
> >
> This fails because
> cat doesn't check anything - it just copies all files to stdout
> It doesn't handle files whose names contain spaces

Hu? I used cat solely for the purpose of showing how to execute
arbitrary commands recursively for each file in a directory tree.
How exactly does cat care about its argument containing spaces?

Regards
Matthias



Reply to: