sh 删除两个dates_hours之间的所有文件 - Unix命令行

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 删除两个dates_hours之间的所有文件 - Unix命令行相关的知识,希望对你有一定的参考价值。

#use this to check the files are going to be deleted are the right ones
find . -maxdepth 1 -type f -newermt '2016-10-12 14:22:59' ! -newermt '2016-10-12 14:24:59'
# delete them
find . -maxdepth 1 -type f -newermt '2016-10-12 14:22:59' ! -newermt '2016-10-12 14:24:59' -deleted

以上是关于sh 删除两个dates_hours之间的所有文件 - Unix命令行的主要内容,如果未能解决你的问题,请参考以下文章