标签:rm
useradd fileremove
find ./ -mtime +30 -type f > /tmp/file.txt
tar cvfz /tmp/$filename.tgz -T /tmp/file.txt
cat /tmp/file.txt |xargs -n 10 chown fileremove.fileremove
sudo -u fileremove cat /tmp/file.txt |xargs -n 10 rm
标签:rm
原文地址:http://leomars.blog.51cto.com/683246/1775073