find

1、查找一个目录下所有文件并清空每一个文件

  find ./ -type f |awk '{print "echo > "$0}'|bash

原文地址:https://www.cnblogs.com/koudai191209/p/13144601.html