#!/bin/bash
function getdir(){
for element in `ls $1`
do
if [ -d $1"/"$element ];then
if [[ ! "$element" == "DerivedData" ]];then
getdir $1"/"$element
else
echo $1"/"$element >> /dev/ttys001
rm -rf $1"/"$element
fi
fi
done
}
root_dir="文件路徑"
getdir $root_dir
創(chuàng)建.sh文件朽缎,并執(zhí)行該文件./***.sh