2017-03-09 74 views

回答

0

truncate以清除文件替换echo和使用发现的,而不是-exec管道到xargs

find . -type f -name "*.txt" -exec truncate -s 0 {} \;

相关问题