21 Jan
2005
21 Jan
'05
23:04
U, On Friday 21 January 2005 13:38, user86 wrote:
Lars Haugseth wrote:
On Friday 21 January 2005 11:02, Laurent Renard wrote: | Hello everyone, | | how could i make a md5sum file calculated from files stored in a | directory ( like in ftp's ... ) ?
Non-recursive: $ find <directory> -type f -maxdepth 1 | xargs md5sum > checksums.txt
Recursive: $ find <directory> -type f | xargs md5sum > checksums.txt
How do you get these to work with filenames that have spaces in their name?
This is what I do in such circumstances: % find ... |tr '\n' '\0' |xargs -0 cmd fixedArgs... Lars' solution is probably better: simpler, cleaner, fewer processes, etc. Randall Schulz