脚本内容如下: #!/bin/bash function delete_file { dir=$1 days=$[$2-1] for i in `find $dir -type f -ctime +$days` do rm -rf $i done } while read line do dir=`echo $line
时间: 2025-01-31 04:44:56
脚本内容如下: #!/bin/bash function delete_file { dir=$1 days=$[$2-1] for i in `find $dir -type f -ctime +$days` do rm -rf $i done } while read line do dir=`echo $line