删除 N 天前文件

2020-01-03  本文已影响0人  Alexander_Zz

~]# find /PATH/TO/SOMEFILES/ -type f -name '*.txt' -mtime +N -exec rm {} \;
       -type c
              File is of type c:

              b      block (buffered) special

              c      character (unbuffered) special

              d      directory

              p      named pipe (FIFO)

              f      regular file

              l      symbolic link; this is never true if the -L option or the -follow option is in effect, unless the symbolic link is  bro‐
                     ken.  If you want to search for symbolic links when -L is in effect, use -xtype.

              s      socket

              D      door (Solaris)
上一篇下一篇

猜你喜欢

热点阅读