方法:
find . -name "*.txt" -mtime -7 -type f -size +1000M | xargs rm -rf {}
[root@logstash tmp]# ls -l
total 3072000
-rw-r--r-- 1 root root 1572864000 Jul 4 09:32 ztj1.txt
-rw-r--r-- 1 root root 1572864000 Jul 4 09:32 ztj.txt
[root@logstash tmp]# find . -name "*.txt" -mtime -7 -type f -size +1000M | xargs rm -rf {}
[root@logstash tmp]# ls
[root@logstash tmp]#

被折叠的 条评论
为什么被折叠?



