从 find 中转义文件和目录名

719*_*016 1 linux bash find

如何从find命令的结果中转义空格和其他符号?例如,如果结果中有空格和其他符号,这将不起作用:

find -maxdepth 5 -type d -print | xargs du -sk | sort -rn
Run Code Online (Sandbox Code Playgroud)

gee*_*aur 5

您想使用find ... -print0xargs -0