find与xargs的结合(处理文件名有空格的情况)

find . -type -f -print0 | xargs -0 file

 

print0是为了是输出的文件名以null结尾,而xargs -0是为了接受以null结果的字符串。

 

安全完美的结合。

posted @ 2012-10-07 20:14  legendmaner  阅读(345)  评论(0)    收藏  举报