Use the -print0 output option on find, and the -0 input option on xargs. This delimits the find results with null characters, and tells xargs to expect the results in that format. That way xargs can stomach path names containing spaces or other potentially troublesome characters in the paths.
No comments:
Post a Comment