#!/usr/bin/bash

#Tate:2022.3.29
#Author:Yingjian
#function: 定时清理~/Trash文件

#自定义清理用户目录
cat > home_list.txt << EOF
/root
/home/ying
EOF

while read line
do
find $line/Trash/ -mtime 7 -iname "*" -exec rm -rf {} \;
done < home_list.txt
