-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
-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