본문 바로가기
Linux

특정날자 기준으로 조회 및 삭제

by GoodDev 2021. 5. 11.

1. 특정 날자 이전

#find -type f ! -newermt '2020-03-14' -exec ls -l {} \;

 

find -type f ! -newermt '2020-03-14' -exec rm -rf {} \;

 

2. 특정 날자 이후

#find -type f -newermt '2020-03-14' -exec ls -l {} \;

 

find -type f -newermt '2020-03-14' -exec rm -rf {} \;

댓글