리눅스 전체 소스에서 폴더들에 각각 존재하는 Kconfig 같은 파일을 폴더 위치 유지하면서 Kconfig 파일만 복사하는 방법이 뭐가 있을까요?
find ./ -name "Kconfig" | cp -r * ~/kconfigs/ 뭐 이런건 안되네요;
tar ?
OTL
find ./ -name "Kconfig" -exec cp {} ~/kconfigs/ \;
이거는요?
copy 할때 path를 유지하는게 핵심인 것 같습니다.
bushi님 말씀처럼 tar를 쓰는게 정답인것 같고, cpio를 쓸 수도 있군요..
http://www.unix.com/shell-programming-scripting/65013-find-copy-files-absolute-path.html
아..그렇군요..path 생각을 못했군요....ㅠㅠ
tar ? OTL
tar ?
OTL
find ./ -name "Kconfig"
find ./ -name "Kconfig" -exec cp {} ~/kconfigs/ \;
이거는요?
copy 할때 path를
copy 할때 path를 유지하는게 핵심인 것 같습니다.
bushi님 말씀처럼 tar를 쓰는게 정답인것 같고, cpio를 쓸 수도 있군요..
http://www.unix.com/shell-programming-scripting/65013-find-copy-files-absolute-path.html
아..그렇군요..path
아..그렇군요..path 생각을 못했군요....ㅠㅠ