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: John Summerfield: "Re: how to write a script that recursively check files in a directory with md5sum"
- In reply to: Matthias Czapla: "Re: how to write a script that recursively check files in a directory with md5sum"
- Next in thread: Matthias Czapla: "Re: how to write a script that recursively check files in a directory with md5sum"
- Reply: Matthias Czapla: "Re: how to write a script that recursively check files in a directory with md5sum"
- Reply: Alan Shutko: "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 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
- Previous message: John Summerfield: "Re: how to write a script that recursively check files in a directory with md5sum"
- In reply to: Matthias Czapla: "Re: how to write a script that recursively check files in a directory with md5sum"
- Next in thread: Matthias Czapla: "Re: how to write a script that recursively check files in a directory with md5sum"
- Reply: Matthias Czapla: "Re: how to write a script that recursively check files in a directory with md5sum"
- Reply: Alan Shutko: "Re: how to write a script that recursively check files in a directory with md5sum"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|