版权声明:本文虽为博主原创文章,但是,如果能有帮助的话,允许大家转载 https://blog.csdn.net/xinyuanqianxun1987/article/details/52955770
sometimes, we need to delete files according to its updating time or some other rules.
Here, we take some example for such usage.
For example: delete files which has been untouched more than 10days in current directory.
command : find . -mtime +10 -type f | xargs rm -rf