[Gllug] Flat rsync

Nix nix at esperi.org.uk
Tue Jul 15 21:17:45 UTC 2008


On 15 Jul 2008, David Damerell told this:

> On Thursday, 10 Jul 2008, Jose Luis Martinez wrote:
>>you have to take care of files with special characters in their names
>>(like spaces, a topic that was discussed a few days ago)
>
> Ouch. "find -print0 ... | xargs -0 ..." is the way forward - no need
> to write a script.

-0r ;)

(GNU find also provides a variant of `-exec' terminated with a + after
the command, which runs the command minimally often, like xargs.  Given
the similar variant of -execdir, and xargs starts to look less appealing
again.)
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list