On Thu, Jan 07, 2010 at 08:35:56AM -0800, Bob McGowan wrote: > Doesn't work - bash and the 'for' loop work on newline > terminated strings and don't know how to handle the null > terminator from -print0:
That's why I said > > Look at the -print0 arg for find and the -0 argument for > > xargs. You need to use them both, *instead* of the for loop. > I would suggest to the OP that they use a 'while' loop > rather than 'for': snip > The 'read' gets the whole line, ignoring spaces. Let's hope none of the files have newlines in their names.
signature.asc
Description: Digital signature