1. 먼저 touch를 이용해서 파일을 생성.
파일을 생성시에 날짜를 지정하면 해당날짜에 생성된 파일 만들어짐. ( 여기서는 2021년 7월 한달간 기준 )
touch 202107010000 start.txt
touch 202107312359 end.txt
2. find . -newer start.txt -a ! -newer end.txt -exed 사용할 명령 같은 것들.
( ex : find . -newer start.txt -a ! -newer end.txt -exed cp {} /toDest/ )
==> 7월 1일 부터 7월 25일 사이에 생성된 파일을 /toDest/라는 폴더로 카피
ㅇㅅㅇ
댓글 0