![[bash]오래된 로그 정리](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FJ7Jij%2FbtrzgHMPtAC%2FTSXIObpRwkrOZB9wazFJ1k%2Fimg.jpg)
# Script/Bash2022. 3. 25. 07:51[bash]오래된 로그 정리
logbak = /log/old_log logpath=/apps/log if [ -d $logbak ] ; then find $logpath -maxdepth 1 -type f -name '*20*' -mtime +3 -exec mv {} $logbak \; fi
logbak = /log/old_log logpath=/apps/log if [ -d $logbak ] ; then find $logpath -maxdepth 1 -type f -name '*20*' -mtime +3 -exec mv {} $logbak \; fi