Thats what the print0 arg in find and the --null arg in xargs are for.
print0 prints the file name followed by a NULL character (rather than newline)
Using the --null/-0 arg makes xargs look for NULLs as delimiters and treat everything else literally.
Comments
Thats what the print0 arg in find and the --null arg in xargs are for.
print0 prints the file name followed by a NULL character (rather than newline) Using the --null/-0 arg makes xargs look for NULLs as delimiters and treat everything else literally.