[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



j smith wrote:

md5sum checks one file a time. i want a script that
recursively check files in a directory.Thanks!

PS: the script's application: in DOS 6, there is
antivirus program called "msav" that check if
executables are changed or infected. such program is
no longer available is Windows, so i want a script
that does this job.

find <workdir> -type f -print0 | xargs -0 md5sum

-print0 so as to cope well with filenames containing spaces.
-0 to tell xargs the names in the list ar nul-terminated.



--

Cheers
John

-- spambait
1aaaaaaa@computerdatasafe.com.au  Z1aaaaaaa@computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/



Reply to: