Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Re: Help, please, with shell scripting for computing checksums


I use
find . -type f -printf "\"%p\"\n" | xargs ...
which I think is a little more portable (less GNU-dependant). But same
thing.

--matt

On Wed, 9 Aug 2000, Jeff Waugh wrote:

> > Roland Turner wrote:
> > 
> > 	find . -type f -print0 | xargs -0 md5sum > md5.list
> > 
> > The -print0 argument to find causes it to put nulls between filenames
> > (instead of newlines).
> 
> 
> Aha! Very cool to know - thanks Raz. :)
> 
> (off I go to change some of my scripts, most of which were piped through tr
> to fix this up!)
> 
> 
> <homer>Mmm... Unix</homer>
> 
> - Jeff
> 
> 
> -- jdub@xxxxxxxxxxx ----------------------- http://linux.org.au/installfest/
>                                                        http://linux.conf.au/
>    I am Jack's implicit trust of ActiveX & VBScript.     http://slug.org.au/
> 
> 
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug
>