Re: how to write a script that recursively check files in a directory with md5sum
From: John Summerfield (debian_at_ComputerDatasafe.com.au)
Date: 07/15/04
- Previous message: Jacob S.: "Re: Can anyone print to an HP inkjet after Cups upgrade? (libcupsys2-gnutls10)"
- In reply to: j smith: "how to write a script that recursively check files in a directory with md5sum"
- Next in thread: Luke A. Kanies: "Re: how to write a script that recursively check files in a directory with md5sum"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 15 Jul 2004 06:03:30 +0800 To: debian-user@lists.debian.org
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/ -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Jacob S.: "Re: Can anyone print to an HP inkjet after Cups upgrade? (libcupsys2-gnutls10)"
- In reply to: j smith: "how to write a script that recursively check files in a directory with md5sum"
- Next in thread: Luke A. Kanies: "Re: how to write a script that recursively check files in a directory with md5sum"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|