sh scripting question

Lowell Gilbert freebsd-questions-local at
Fri Oct 16 20:20:13 UTC 2020

Robert Huff <roberthuff at> writes:

> 	OP here.
> 	The filenames at hand were generated by "find" and - on casual
> inspection - have no oddities other than the embedded spaces.

Since find is in use, I think the canonical solution is
to use "find -print0"..."xargs -0"

But it's not always convenient to use that mechanism, so
there are other methods that have been used quite a few
times, depending on the tools the user is comfortable
with. In my case, it might involve an inline sed
invocation to add the quoting for the spaces.

Be well.

More information about the freebsd-questions mailing list