22 Jan
2005
22 Jan
'05
09:09
On Saturday 22 January 2005 02:47, Randall R Schulz wrote:
U,
On Friday 21 January 2005 17:32, user86 wrote:
...
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".
Then my NUL byte technique will work (I think)
% find ... |tr '\n' '\0' |xargs -0 cmd fixedArgs...
No need to pipe through 'tr': $ find <directory> -type f -print0 | xargs -0 md5sum > checksums.txt -- Lars Haugseth