linux下shell脚本问题求解
#!/bin/bashfun(){
for dir_now in $(cat $dir);
do
day_clean=3
for((i=1;i<60;i++))
do
day_clean=`expr $day_clean + 1`
rm_day=`date +%Y-%m-%d* --date "$day_clean days ago"`
echo $rm_day
find $dir_now -name $rm_day -type f -exec rm -rf {} \;
echo $dir_now
done
done
}
dir=$1
echo $dir
fun
为什么总提示找不到删除路径~~~~~~~~