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

  • Next message: John Summerfield: "Re: how to write a script that recursively check files in a directory with md5sum"
    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
    

  • Next message: John Summerfield: "Re: how to write a script that recursively check files in a directory with md5sum"

    Relevant Pages

    • Re: if [ -x "$fullpath" ]; then fails
      ... script testing for the existence of required executables uses the ... But it fails when it tests for a shell script, ... supposed to work for extensionless shell script files like autoconf? ... It, autoconf, is not an executable on Windows either. ...
      (comp.os.os2.programmer.porting)
    • Re: Perl newbie - getting "system()" to return
      ... >> I have to run 4 Windows XP Pro executables sequentially from a script. ... >> But the Command windows hangs until I kill the process from task ...
      (comp.lang.perl.misc)
    • Re: Perl newbie - getting "system()" to return
      ... > I have to run 4 Windows XP Pro executables sequentially from a script. ... > But the Command windows hangs until I kill the process from task ...
      (comp.lang.perl.misc)
    • Perl newbie - getting "system()" to return
      ... I have to run 4 Windows XP Pro executables sequentially from a script. ... But the Command windows hangs until I kill the process from task ...
      (comp.lang.perl.misc)
    • Re: Microsoft Warns of New Windows Flaw (March 19, 2003 )
      ... In WINDOWS SETUP in ADD/REMOVE PROGRAMS of Control Panel ... Uninstall Outlook Express, ... Java, Javascript, ActiveX and all the other script runner toys Billy ... Install WebWasher the spammers are terrified of free from ...
      (comp.security.misc)