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: Chris: "Re: courier-imap-ssl "server disconnect" error behind firewall"
    Date: Thu, 15 Jul 2004 07:14:30 +0800
    To: debian-user@lists.debian.org
    
    

    Matthias Czapla wrote:

    >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?
    >
    >
    >

    Since he specifically said he wants to use mdsum, it's clearer to use
    the program he said he wants to use.

    Try it and see what happens.

    The problem is that fragments of file names separated by spaces are
    indistinguishable from filenames separated by spaces.

    -- 
    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: Chris: "Re: courier-imap-ssl "server disconnect" error behind firewall"

    Relevant Pages

    • Re: Masks: Why?
      ... understand the purpose or functionality of this. ... if(hello & MASK) ... Also I don't understand the purpose of the bitwise ... The masking means that you /don't care/ about the WRITE and EXECUTE bits. ...
      (comp.lang.c)
    • Still no EXECUTE or REVENGE on SCT But...
      ... I have not seen EXECUTE. ... Also REVENGE is not showing up when I am in Defensive Stance. ... All the others are still showing up even for my hutner such as KILL ... I been keeping an eye on the icons in the action bar. ...
      (alt.games.warcraft)
    • Re: CMU CL or SBCL on (FreeBSD/)AMD64 any time soon?
      ... > Hmm. ... I'm showing my shocking ignorance here: ... The AMD64 port of Debian/Linux includes a subsystem for this purpose, ...
      (comp.lang.lisp)
    • Re: What The...? EXECUTE is not Showing on my Center Screen
      ... I have not seen EXECUTE. ... Also REVENGE is not showing up when I am in Defensive Stance. ... All the others are still showing up even for my hutner such as KILL ... Looks like the bug was introduced earlier than Blizz might know. ...
      (alt.games.warcraft)
    • Re: What The...? EXECUTE is not Showing on my Center Screen
      ... I have not seen EXECUTE. ... in the bar and when it lights up I can do it but hell I really prefer ... Also REVENGE is not showing up when I am in Defensive Stance. ... All the others are still showing up even for my hutner such as KILL ...
      (alt.games.warcraft)