리눅스(Linux)

검색된 파일 전체 복사하기

leebaro 2018. 1. 18.
728x90

linux에서 검색된 파일을 전체 복사하기 위해서는 아래와 같이 실행한다.


find ./ -name "*.png" -exec cp {} /app/data/image/all \;



원하는 명령 수행 후   \;를 붙여줘야 한다.




reference


http://knamhun.blogspot.kr/2009/03/find.html

728x90