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
原文:http://leomars.blog.51cto.com/683246/1775073