Linux
특정날자 기준으로 조회 및 삭제
GoodDev
2021. 5. 11. 12:21
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 {} \;