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 [EMAIL PROTECTED] [EMAIL PROTECTED] Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]