22 Jan
2005
22 Jan
'05
01:32
Lars Haugseth wrote:
On Friday 21 January 2005 22: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?
$ find <directory> -type f | xargs -i md5sum "{}" > checksums.txt
Regards,
Thanks, but that also fails if a filename has an apostrophe in its name. "Bull's Eye.txt" I get an error of "xargs: unmatched single quote".