-exec 创建子shell
$ find . -exec sh -c ‘echo -n {} | tr -d "[:alnum:]_.\-" | \ tr "/" " "; basename {}‘ \;
文件汇总信息
for d in `find . -type d`;
do
echo `find $d -type f | wc -l` files in $d;
done
原文地址:https://www.cnblogs.com/zhg1016/p/10536067.html
时间: 2024-10-11 13:28:38